summaryrefslogtreecommitdiffstats
path: root/csit/tests/cps-data/cps-data.robot
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2021-07-15 07:40:15 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-15 07:40:15 +0000
commitb0c2031e8d546336685c84cfccef8d515144dfc6 (patch)
treef17c7fc5e9c35c554c879c2343a29b038ef95061 /csit/tests/cps-data/cps-data.robot
parentd9fe3582c963209a2841b2ec2ca0e5cfe17ea887 (diff)
parentb46d137c04a78f62d097f680e016558b815bd915 (diff)
Merge "Expose Prometheus metrics for monitoring"
Diffstat (limited to 'csit/tests/cps-data/cps-data.robot')
-rw-r--r--csit/tests/cps-data/cps-data.robot6
1 files changed, 3 insertions, 3 deletions
diff --git a/csit/tests/cps-data/cps-data.robot b/csit/tests/cps-data/cps-data.robot
index 9fd8451d28..e7334ae11e 100644
--- a/csit/tests/cps-data/cps-data.robot
+++ b/csit/tests/cps-data/cps-data.robot
@@ -23,7 +23,7 @@ Library Collections
Library OperatingSystem
Library RequestsLibrary
-Suite Setup Create Session CPS_HOST ${CPS_HOST}
+Suite Setup Create Session CPS_URL http://${CPS_HOST}:${CPS_PORT}
*** Variables ***
@@ -37,14 +37,14 @@ Create Data Node
${uri}= Set Variable ${basePath}/v1/dataspaces/${dataspaceName}/anchors/${anchorName}/nodes
${headers} Create Dictionary Content-Type=application/json Authorization=${auth}
${jsonData}= Get Binary File ${DATADIR}${/}test-tree.json
- ${response}= POST On Session CPS_HOST ${uri} headers=${headers} data=${jsonData}
+ ${response}= POST On Session CPS_URL ${uri} headers=${headers} data=${jsonData}
Should Be Equal As Strings ${response.status_code} 201
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
${headers}= Create Dictionary Authorization=${auth}
- ${response}= Get On Session CPS_HOST ${uri} params=${params} headers=${headers} expected_status=200
+ ${response}= Get On Session CPS_URL ${uri} params=${params} headers=${headers} expected_status=200
${responseJson}= Set Variable ${response.json()}
Should Be Equal As Strings ${responseJson['name']} Small