You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/robot/_resources/keywords/aql_query_keywords.robot
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -67,18 +67,18 @@ CircleCI Cache Restored
67
67
${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
68
68
${cache_exists} Set Variable If ${db_cache_exists} and ${exp_results_1} and ${exp_results_2}${TRUE}${FALSE}
69
69
Set Global Variable ${CACHE_EXISTS}${cache_exists}
70
-
70
+
71
71
RETURN ${cache_exists}
72
72
73
73
Establish Preconditions
74
74
# comment: WHEN TEST-DATA HAS NOT CHANGED RESTORE DB FROM DUMP (IF CACHE EXISTS) AND SKIP REST OF THIS KW!
75
75
# below trueth table applies
76
76
#
77
77
# 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
82
82
83
83
${data-changed} Run Keyword And Return Status File Should Exist /tmp/DATA_CHANGED_NOTICE
84
84
${cache-exist} CircleCI Cache Restored
@@ -88,7 +88,7 @@ Establish Preconditions
88
88
# via ${REDUMP_REQUIRED} global var which is used in `shut down sut` KW.
89
89
${redump_required} Set Variable If not ${data-changed} and ${cache-exist}${FALSE}${TRUE}
90
90
Set Global Variable ${REDUMP_REQUIRED}${redump_required}
91
-
91
+
92
92
# comment: WHEN /tmp/DATA_CHANGED_NOTICE FILE EXIST DO THIS!
93
93
Preconditions (PART 1) - Load Blueprints of Queries and Expected-Results
94
94
Preconditions (PART 2) - Generate Test-Data and Expected-Results
@@ -221,7 +221,7 @@ POST /query/aql
221
221
Set Test Variable ${response}${resp}
222
222
Set Test Variable ${response body}${resp.content}
223
223
# Output Debug Info: POST /query/aql
224
-
224
+
225
225
# UNCOMMENT NEXT BLOCK FOR DEBUGGING (BETTER OUTPUT IN CONSOLE)
226
226
# TODO: rm/comment it out when test stable
227
227
Log To Console \n//////////// ACTUAL //////////////////////////////
@@ -246,7 +246,7 @@ POST /query/aql (REST)
246
246
247
247
Integer response status 200
248
248
Set Test Variable ${response}${resp}
249
-
249
+
250
250
# UNCOMMENT NEXT BLOCK FOR DEBUGGING (BETTER OUTPUT IN CONSOLE)
251
251
# TODO: rm/comment it out when test stable
252
252
Log To Console \n//////////// ACTUAL //////////////////////////////
@@ -386,7 +386,7 @@ GET /definition/query/{qualified_query_name} / including {version}
386
386
IF '${q_exists}' == '${TRUE}'
387
387
Set Test Variable ${resp_query}${resp['q']}
388
388
ELSE IF '${q_exists}' == '${FALSE}'
389
-
Set Test Variable ${resp_versions}${resp['versions'][0]}
389
+
Set Test Variable ${resp_versions}${resp[0]}
390
390
END
391
391
392
392
GET /definition/query
@@ -2268,4 +2268,4 @@ Execute Query And Compare Actual Result With Expected
0 commit comments