summaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-12-22 15:12:50 +0000
committerGerrit Code Review <gerrit@onap.org>2022-12-22 15:12:50 +0000
commitcd02dc580f1a83d4ce05c7b1eedea88593fac5df (patch)
treecc04e4da6c4be4699e6d4adf2dc1db49aec050d1 /csit
parentacc63c2a2b5974d3346cbb763ec963104a393a18 (diff)
parent5452b5ea786a3e7def19c1f328c43ec264da38d5 (diff)
Merge "Add fix for posting nodes with xPath with '/'"
Diffstat (limited to 'csit')
-rw-r--r--csit/data/test-tree.json6
-rw-r--r--csit/tests/cps-data/cps-data.robot4
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