...
- Use method getFragmentByXpath() to the get the parentEntity of the data-node.
- Check if it is a data-node and not or a list-node to be deleted.
- If it is a data-node call removeDataNode().Throw ListNodeGivenException if
- If it is a list node given instead of a data-node call deleteListDataNodes(). (See
)Jira server ONAP Jira serverId 425b2b0a-557c-3c0c-b515-579789cceedb key CPS-361
Persistence layer (CpsDataPersistenceServiceSpec.groovy)
- Verify data-node is deleted successfully.
- Verify list-node is deleted successfully
- Error thrown when the xpath does not exist.
- Error is thrown if it is a data node or list node don't exist.
Jira | ||||||
---|---|---|---|---|---|---|
|
Issues & Decisions
# | Issue | Notes | Decision |
---|---|---|---|
1 | Empty Anchors | If top level data-node is removed, it could potentially leave an empty anchor. | Check with stakeholders (Peter and Kieran) |