aboutsummaryrefslogtreecommitdiffstats
path: root/csit/tests/cps-data-sync/cps-data-sync.robot
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-12-07 15:33:09 +0000
committerJvD_Ericsson <jeff.van.dam@est.tech>2023-12-12 10:37:19 +0000
commit14d37304d8b83efc099ba19d6f3e7d5d53fead29 (patch)
tree5aac3fa33056f1d85be4b77a0c2809862569dee5 /csit/tests/cps-data-sync/cps-data-sync.robot
parent93f2c3ff203d78d8cddae7878d16fe2f55661655 (diff)
Clean up CSIT Test
- Removed gitignore from csit and made it top level - Removed tabs from all files - Created sub-folder for cps-core and ncmp in the data folder - Deleted csit/data/postModuleRequestBody.json, was not used - Removed setting variable for most response.json() calls Issue-Id: CPS-734 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I32fd5b4f5a0132987a4684c336846b86df7b49e7
Diffstat (limited to 'csit/tests/cps-data-sync/cps-data-sync.robot')
-rw-r--r--csit/tests/cps-data-sync/cps-data-sync.robot6
1 files changed, 2 insertions, 4 deletions
diff --git a/csit/tests/cps-data-sync/cps-data-sync.robot b/csit/tests/cps-data-sync/cps-data-sync.robot
index d37125b15..e96e10a42 100644
--- a/csit/tests/cps-data-sync/cps-data-sync.robot
+++ b/csit/tests/cps-data-sync/cps-data-sync.robot
@@ -43,13 +43,11 @@ Operational state goes to UNSYNCHRONIZED when data sync (flag) is enabled
${verifyUri}= Set Variable ${ncmpBasePath}/v1/ch/PNFDemo/state
${verifyHeaders}= Create Dictionary Authorization=${auth}
${verifyResponse}= GET On Session CPS_URL ${verifyUri} headers=${verifyHeaders}
- ${verifyResponseJson}= Set Variable ${verifyResponse.json()['state']['dataSyncState']['operational']}
- Should Be Equal As Strings ${verifyResponseJson['syncState']} UNSYNCHRONIZED
+ Should Be Equal As Strings ${verifyResponse.json()['state']['dataSyncState']['operational']['syncState']} UNSYNCHRONIZED
Sleep 5
Operational state goes to SYNCHRONIZED after sometime when data sync (flag) is enabled
${uri}= Set Variable ${ncmpBasePath}/v1/ch/PNFDemo/state
${headers}= Create Dictionary Authorization=${auth}
${response}= GET On Session CPS_URL ${uri} headers=${headers}
- ${responseJson}= Set Variable ${response.json()['state']['dataSyncState']['operational']}
- Should Be Equal As Strings ${responseJson['syncState']} SYNCHRONIZED \ No newline at end of file
+ Should Be Equal As Strings ${response.json()['state']['dataSyncState']['operational']['syncState']} SYNCHRONIZED \ No newline at end of file