From 57eef896292ea69b76b6973f1176293df0ee22d3 Mon Sep 17 00:00:00 2001 From: vladislavploaia Date: Thu, 26 Sep 2024 12:20:45 +0300 Subject: [PATCH] fix: ignore order of results and check for string exitence in rows --- .../aql_q_and_executed_aql_checks.robot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/robot/AQL_TESTS/SELECT/Q_AND_EXECUTED_AQL_CHECKS/aql_q_and_executed_aql_checks.robot b/tests/robot/AQL_TESTS/SELECT/Q_AND_EXECUTED_AQL_CHECKS/aql_q_and_executed_aql_checks.robot index 3229d1c1..4b59363f 100644 --- a/tests/robot/AQL_TESTS/SELECT/Q_AND_EXECUTED_AQL_CHECKS/aql_q_and_executed_aql_checks.robot +++ b/tests/robot/AQL_TESTS/SELECT/Q_AND_EXECUTED_AQL_CHECKS/aql_q_and_executed_aql_checks.robot @@ -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} @@ -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}