summaryrefslogtreecommitdiffstats
path: root/csit/tests/cps-admin/cps-admin.robot
diff options
context:
space:
mode:
Diffstat (limited to 'csit/tests/cps-admin/cps-admin.robot')
-rw-r--r--csit/tests/cps-admin/cps-admin.robot12
1 files changed, 11 insertions, 1 deletions
diff --git a/csit/tests/cps-admin/cps-admin.robot b/csit/tests/cps-admin/cps-admin.robot
index 0e07f38aa3..93818070ba 100644
--- a/csit/tests/cps-admin/cps-admin.robot
+++ b/csit/tests/cps-admin/cps-admin.robot
@@ -14,6 +14,8 @@ ${basePath} /cps/api
${dataspaceName} CSIT-Dataspace
${schemaSetName} CSIT-SchemaSet
${anchorName} CSIT-Anchor
+${ranDataspaceName} NFP-Operational
+${ranSchemaSetName} cps-ran-schema-model
*** Test Cases ***
Create Dataspace
@@ -56,4 +58,12 @@ Create Anchor
${params}= Create Dictionary schema-set-name=${schemaSetName} anchor-name=${anchorName}
${headers}= Create Dictionary Authorization=${auth}
${response}= POST On Session CPS_HOST ${uri} params=${params} headers=${headers}
- Should Be Equal As Strings ${response.status_code} 201 \ No newline at end of file
+ Should Be Equal As Strings ${response.status_code} 201
+
+Get CPS RAN Schema Set info
+ ${uri}= Set Variable ${basePath}/v1/dataspaces/${ranDataspaceName}/schema-sets/${ranSchemaSetName}
+ ${headers}= Create Dictionary Authorization=${auth}
+ ${response}= Get On Session CPS_HOST ${uri} headers=${headers} expected_status=200
+ ${responseJson}= Set Variable ${response.json()}
+ Should Be Equal As Strings ${responseJson['name']} ${ranSchemaSetName}
+ Should Be Equal As Strings ${responseJson['dataspaceName']} ${ranDataspaceName}