diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2022-12-22 15:12:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-12-22 15:12:50 +0000 |
commit | cd02dc580f1a83d4ce05c7b1eedea88593fac5df (patch) | |
tree | cc04e4da6c4be4699e6d4adf2dc1db49aec050d1 /csit | |
parent | acc63c2a2b5974d3346cbb763ec963104a393a18 (diff) | |
parent | 5452b5ea786a3e7def19c1f328c43ec264da38d5 (diff) |
Merge "Add fix for posting nodes with xPath with '/'"
Diffstat (limited to 'csit')
-rw-r--r-- | csit/data/test-tree.json | 6 | ||||
-rw-r--r-- | csit/tests/cps-data/cps-data.robot | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/csit/data/test-tree.json b/csit/data/test-tree.json index 89d6784275..8f4b522799 100644 --- a/csit/data/test-tree.json +++ b/csit/data/test-tree.json @@ -2,11 +2,11 @@ "test-tree": { "branch": [ { - "name": "Left", + "name": "LEFT/left", "nest": { - "name": "Small", + "name": "SMALL/small", "birds": [ - "Sparrow", + "SPARROW/sparrow", "Robin", "Finch" ] diff --git a/csit/tests/cps-data/cps-data.robot b/csit/tests/cps-data/cps-data.robot index 2da2b73414..096bd07b79 100644 --- a/csit/tests/cps-data/cps-data.robot +++ b/csit/tests/cps-data/cps-data.robot @@ -44,10 +44,10 @@ Create Data Node Get Data Node by XPath ${uri}= Set Variable ${basePath}/v1/dataspaces/${dataspaceName}/anchors/${anchorName}/node - ${params}= Create Dictionary xpath=/test-tree/branch[@name='Left']/nest + ${params}= Create Dictionary xpath=/test-tree/branch[@name='LEFT/left']/nest ${headers}= Create Dictionary Authorization=${auth} ${response}= Get On Session CPS_URL ${uri} params=${params} headers=${headers} expected_status=200 ${responseJson}= Set Variable ${response.json()['tree:nest']} - Should Be Equal As Strings ${responseJson['name']} Small + Should Be Equal As Strings ${responseJson['name']} SMALL/small |