diff options
author | mpriyank <priyank.maheshwari@est.tech> | 2024-02-08 11:42:53 +0000 |
---|---|---|
committer | mpriyank <priyank.maheshwari@est.tech> | 2024-02-08 11:42:58 +0000 |
commit | 6482b36e6aa33c714ddcaea7f1064e0eb82344ec (patch) | |
tree | ec1de0b5c7a26fcf7331a08380f94e1a34136b4b /csit/tests/cps-data | |
parent | fcb79d65adb5b934aa5940b47cc5a577abfa383d (diff) |
Cps Data csit enhanced
- instead of relying on the sequence of elements , using the contains
operation to assert the result
Issue-ID: CPS-2075
Change-Id: Ifbd3c601cc48148d0c4d7ce47301dbfb5184e1de
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'csit/tests/cps-data')
-rw-r--r-- | csit/tests/cps-data/cps-data.robot | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/csit/tests/cps-data/cps-data.robot b/csit/tests/cps-data/cps-data.robot index 61ab3dcdf7..bcab3a679b 100644 --- a/csit/tests/cps-data/cps-data.robot +++ b/csit/tests/cps-data/cps-data.robot @@ -57,7 +57,12 @@ Get Updated Data Node by XPath ${response}= Get On Session CPS_URL ${uri} params=${params} headers=${headers} expected_status=200 ${responseJson}= Set Variable ${response.json()['tree:nest']} Should Be Equal As Strings ${responseJson['name']} Bigger - Should Be Equal As Strings ${responseJson['birds']} ['Pigeon', 'Falcon', 'Eagle'] + ${length_birds}= Get Length ${responseJson['birds']} + Should Be Equal As Integers ${length_birds} 3 + ${expected_list}= Create List Pigeon Falcon Eagle + FOR ${item_to_check} IN @{expected_list} + Should Contain ${responseJson['birds']} ${item_to_check} + END Get Data Node by XPath ${uri}= Set Variable ${basePath}/v1/dataspaces/${dataspaceName}/anchors/${anchorName}/node |