Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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().

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
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-313

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-361


Issues & Decisions

#

Issue

Notes

Decision

1Empty AnchorsIf top level data-node is removed, it could potentially leave an empty anchor.Check with stakeholders (Peter and Kieran)