From 14d37304d8b83efc099ba19d6f3e7d5d53fead29 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Thu, 7 Dec 2023 15:33:09 +0000 Subject: 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 Change-Id: I32fd5b4f5a0132987a4684c336846b86df7b49e7 --- csit/tests/cps-data-sync/cps-data-sync.robot | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'csit/tests/cps-data-sync/cps-data-sync.robot') 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 -- cgit 1.2.3-korg