summaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorBruno Sakoto <bruno.sakoto@bell.ca>2021-05-05 08:11:19 -0400
committerRishi Chail <rishi.chail@est.tech>2021-05-07 08:26:42 +0000
commitddedbd16185f756fd6171c6951877cedf78a647f (patch)
tree65528010486dfa7706e4e89ad54d82df8863d96a /csit
parent4395c1fad0b92f0f7084ca9d70e6e26f61007513 (diff)
Fix cps ran yang data model
* Add a liquibase change set to update cps ran model data * Rename model "cps-ran-schema-model@2021-01-28.yang" to be compliant with yang specifications related to file layout https://tools.ietf.org/html/rfc7950#section-5.2 * Improve yang validation error handling to provide more information about the validation failure in the request response * Add csit test to verify cps ran model retrieval Issue-ID: CPS-377 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I4f0e337b50d79e81f895eb32f09ae9cb5d9d8a70
Diffstat (limited to 'csit')
-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}