Skip to content

Commit 2790b5b

Browse files
committed
CDR-2190 fix keywork for stored query definition retrieval
1 parent bf6c3b1 commit 2790b5b

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

tests/robot/_resources/keywords/aql_query_keywords.robot

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ CircleCI Cache Restored
6767
${exp_results_2} Run Keyword And Return Status File Should Exist ${EXECDIR}/robot/_resources/test_data_sets/query/expected_results/loaded_db/D/503.tmp.json
6868
${cache_exists} Set Variable If ${db_cache_exists} and ${exp_results_1} and ${exp_results_2} ${TRUE} ${FALSE}
6969
Set Global Variable ${CACHE_EXISTS} ${cache_exists}
70-
70+
7171
RETURN ${cache_exists}
7272

7373
Establish Preconditions
7474
# comment: WHEN TEST-DATA HAS NOT CHANGED RESTORE DB FROM DUMP (IF CACHE EXISTS) AND SKIP REST OF THIS KW!
7575
# below trueth table applies
7676
#
7777
# Data Changed Cache Restored Restore DB! (Re)Dump DB!
78-
# true true no yes
79-
# true false no yes
80-
# false true yes no
81-
# false false no yes
78+
# true true no yes
79+
# true false no yes
80+
# false true yes no
81+
# false false no yes
8282

8383
${data-changed} Run Keyword And Return Status File Should Exist /tmp/DATA_CHANGED_NOTICE
8484
${cache-exist} CircleCI Cache Restored
@@ -88,7 +88,7 @@ Establish Preconditions
8888
# via ${REDUMP_REQUIRED} global var which is used in `shut down sut` KW.
8989
${redump_required} Set Variable If not ${data-changed} and ${cache-exist} ${FALSE} ${TRUE}
9090
Set Global Variable ${REDUMP_REQUIRED} ${redump_required}
91-
91+
9292
# comment: WHEN /tmp/DATA_CHANGED_NOTICE FILE EXIST DO THIS!
9393
Preconditions (PART 1) - Load Blueprints of Queries and Expected-Results
9494
Preconditions (PART 2) - Generate Test-Data and Expected-Results
@@ -221,7 +221,7 @@ POST /query/aql
221221
Set Test Variable ${response} ${resp}
222222
Set Test Variable ${response body} ${resp.content}
223223
# Output Debug Info: POST /query/aql
224-
224+
225225
# UNCOMMENT NEXT BLOCK FOR DEBUGGING (BETTER OUTPUT IN CONSOLE)
226226
# TODO: rm/comment it out when test stable
227227
Log To Console \n//////////// ACTUAL //////////////////////////////
@@ -246,7 +246,7 @@ POST /query/aql (REST)
246246

247247
Integer response status 200
248248
Set Test Variable ${response} ${resp}
249-
249+
250250
# UNCOMMENT NEXT BLOCK FOR DEBUGGING (BETTER OUTPUT IN CONSOLE)
251251
# TODO: rm/comment it out when test stable
252252
Log To Console \n//////////// ACTUAL //////////////////////////////
@@ -386,7 +386,7 @@ GET /definition/query/{qualified_query_name} / including {version}
386386
IF '${q_exists}' == '${TRUE}'
387387
Set Test Variable ${resp_query} ${resp['q']}
388388
ELSE IF '${q_exists}' == '${FALSE}'
389-
Set Test Variable ${resp_versions} ${resp['versions'][0]}
389+
Set Test Variable ${resp_versions} ${resp[0]}
390390
END
391391

392392
GET /definition/query
@@ -2268,4 +2268,4 @@ Execute Query And Compare Actual Result With Expected
22682268
# ... \\['_type'\\]
22692269
# &{diff} compare json-strings ${response body} ${expected result}
22702270
# ... exclude_regex_paths=${exclude_paths}
2271-
# ... ignore_order=False
2271+
# ... ignore_order=False

0 commit comments

Comments
 (0)