Skip to content

Commit

Permalink
fix: ignore order of results and check for string exitence in rows
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavploaia committed Sep 26, 2024
1 parent 95b2a8e commit 57eef89
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Suite Setup Set Library Search Order For Tests
Should Be Equal ${resp_body['meta']['resultsize']} ${2}
Should Be Equal As Strings ${resp_body_query} ${query_matches1}
Should Be Equal As Strings ${resp_body['meta']['_executed_aql']} ${query_matches1}
Should Be Equal As Strings ${resp_body['rows'][1]} ['2022-02-03T04:05:06', 'Section 1']
Should Be Equal As Strings ${resp_body['rows'][0]} ['2022-02-03T04:05:06', 'Section 2']
Should Contain ${resp_body['rows']} ['2022-02-03T04:05:06', 'Section 1']
Should Contain ${resp_body['rows']} ['2022-02-03T04:05:06', 'Section 2']

1.d Query - Ad-Hoc Query POST - MATCHES Multiple Values
Set Test Variable ${query_matches2}
Expand All @@ -64,8 +64,8 @@ Suite Setup Set Library Search Order For Tests
Length Should Be ${resp_body['rows']} ${2}
Should Be Equal ${resp_body['meta']['resultsize']} ${2}
Should Be Equal As Strings ${resp_body_query} ${query_matches2}
Should Be Equal As Strings ${resp_body['rows'][1]} ['2022-02-03T04:05:06', 'Section 1']
Should Be Equal As Strings ${resp_body['rows'][0]} ['2022-02-03T04:05:06', 'Section 2']
Should Contains ${resp_body['rows']} ['2022-02-03T04:05:06', 'Section 1']
Should Contains ${resp_body['rows']} ['2022-02-03T04:05:06', 'Section 2']
### Check with one item in list
Set Test Variable ${query_matches3}
... SELECT pe/time/value, s/name/value FROM EHR e CONTAINS COMPOSITION c CONTAINS SECTION s CONTAINS POINT_EVENT pe WHERE s/name/value MATCHES {$sections}
Expand Down

0 comments on commit 57eef89

Please sign in to comment.