diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_all_and_by.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_all_and_by.robot index 9bf906e5..735c8279 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_all_and_by.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_all_and_by.robot @@ -16,10 +16,12 @@ Find All: SELECT f/uid/value, f/name/value, f/archetype_node_id FROM FOLDER f ${query} Set Variable SELECT f/uid/value, f/name/value, f/archetype_node_id FROM FOLDER f Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 3 - ${expected_result} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_find_all.json + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_find_all.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${expected_result} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_order=${TRUE} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! @@ -42,10 +44,12 @@ Find By Name: SELECT f/uid/value FROM FOLDER f WHERE f/name/value = 'root1' ${query} Set Variable SELECT f/uid/value FROM FOLDER f WHERE f/name/value = 'root1' Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 1 - ${expected_result} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_find_by_name_root1.json + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_find_by_name_root1.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${expected_result} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} Should Be Empty ${diff} msg=DIFF DETECTED! Find By Name: SELECT f/uid/value FROM FOLDER f WHERE f/name/value = 'subfolder1' @@ -90,4 +94,4 @@ Find By Folder Id: SELECT f/name/value, f/uid/value FROM FOLDER f WHERE f/uid/va Precondition Set Library Search Order For Tests Create EHR For AQL - Create Directory For AQL folder_simple_hierarchy.json \ No newline at end of file + Create Directory For AQL folder_simple_hierarchy.json diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_by_ehr_id.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_by_ehr_id.robot index 92aa6f8d..9c6faf76 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_by_ehr_id.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER/find_by_ehr_id.robot @@ -18,19 +18,14 @@ Find By EHR Id: SELECT e/ehr_id/value, f/uid/value FROM EHR e CONTAINS FOLDER f ${query} Set Variable SELECT e/ehr_id/value, f/uid/value FROM EHR e CONTAINS FOLDER f WHERE e/ehr_id/value = '${ehr_id1}' Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 3 - ${temporary_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_find_by_ehr_id_tmp.json - ${expected_file} Set Variable expected_folder_find_by_ehr_id.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_find_by_ehr_id.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} *** Keywords *** diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/folder_in_folder.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/folder_in_folder.robot index 0d83d42f..d8dbc65e 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/folder_in_folder.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/folder_in_folder.robot @@ -22,20 +22,15 @@ ${q} SELECT c/uid/value FROM FOLDER f1[openEHR-EHR-FOLDER.episode_of_care.v1] Folder In Folder: ${q} Set Test Variable ${query} ${q} Set AQL And Execute Ad Hoc Query ${query} - ${temporary_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_contains_compo_folder_in_folder_tmp.json Length Should Be ${resp_body['rows']} 1 - ${expected_file} Set Variable expected_contains_compo_folder_in_folder.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_contains_compo_folder_in_folder.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} *** Keywords *** diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multi_comp_in_a_folder.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multi_comp_in_a_folder.robot index eb77ad00..be3df3cc 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multi_comp_in_a_folder.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multi_comp_in_a_folder.robot @@ -21,21 +21,17 @@ ${q} SELECT c/uid/value FROM FOLDER f CONTAINS COMPOSITION c Multi Comp In A Folder: ${q} Set Test Variable ${query} ${q} Set AQL And Execute Ad Hoc Query ${query} - ${temporary_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_contains_compo_multi_compo_in_folder_tmp.json Length Should Be ${resp_body['rows']} 2 - ${expected_file} Set Variable expected_contains_compo_multi_compo_in_folder.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable + ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_contains_compo_multi_compo_in_folder.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_order=${TRUE} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} *** Keywords *** diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multiple_ehrs_and_compo_select_by_ids.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multiple_ehrs_and_compo_select_by_ids.robot index 412418aa..62452110 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multiple_ehrs_and_compo_select_by_ids.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/multiple_ehrs_and_compo_select_by_ids.robot @@ -26,19 +26,15 @@ SELECT e/ehr_id/value, f/uid/value, c/uid/value FROM EHR e CONTAINS FOLDER f CON ... SELECT e/ehr_id/value, f/uid/value, c/uid/value FROM EHR e CONTAINS FOLDER f CONTAINS COMPOSITION c WHERE e/ehr_id/value = '${ehr_id2}' AND f/uid/value = '70939d97-8add-4419-b27c-516e64b1c744' AND c/uid/value = '${c_uid4b}' Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 1 - ${temporary_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_multiple_ehrs_and_compo_select_by_ids_tmp.json - ${expected_file} Set Variable expected_multiple_ehrs_and_compo_select_by_ids.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable + ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_multiple_ehrs_and_compo_select_by_ids.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} *** Keywords *** diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/over_multiple_ehrs.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/over_multiple_ehrs.robot index f54b11f8..bc3767b5 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/over_multiple_ehrs.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/over_multiple_ehrs.robot @@ -27,22 +27,16 @@ ${q} SELECT e/ehr_id/value, c/uid/value FROM EHR e CONTAINS FOLDER f CONTAINS *** Test Cases *** Over Multiple EHRs: ${q} Set Test Variable ${query} ${q} - ${temporary_file} Set Variable - ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_contains_compo_over_multiple_ehrs_tmp.json Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 2 - ${expected_file} Set Variable expected_contains_compo_over_multiple_ehrs.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_contains_compo_over_multiple_ehrs.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} *** Keywords *** diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_all.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_all.robot index 35ca2604..8083fcaa 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_all.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_all.robot @@ -17,22 +17,18 @@ Suite Teardown Admin Delete EHR For AQL Folder Contains Composition: SELECT c/uid/value, f/name/value FROM FOLDER f CONTAINS COMPOSITION c ${query} Set Variable ... SELECT c/uid/value, f/name/value FROM FOLDER f CONTAINS COMPOSITION c - ${temporary_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_contains_compo_select_all_tmp.json Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 12 - ${expected_file} Set Variable expected_folder_contains_compo_select_all.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable + ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_contains_compo_select_all.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_order=${TRUE} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} *** Keywords *** diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_by_name.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_by_name.robot index 38fd837a..48dd2d5c 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_by_name.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_COMPO/select_by_name.robot @@ -41,19 +41,14 @@ Precondition Execute Query [Arguments] ${name} ${expected_file} ${nr_of_results} ${query} Set Variable SELECT c/uid/value FROM FOLDER f CONTAINS COMPOSITION c WHERE f/name/value = '${name}' - ${expected_file_with_replaced_vars} Set Variable - ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_contains_compo_select_by_name_tmp.json Set AQL And Execute Ad Hoc Query ${query} - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create Binary File ${expected_file_with_replaced_vars} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} Length Should Be ${resp_body['rows']} ${nr_of_results} ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${expected_file_with_replaced_vars} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} ... exclude_paths=${exclude_paths} ... ignore_order=${TRUE} ignore_string_case=${TRUE} - Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${expected_file_with_replaced_vars} \ No newline at end of file + Should Be Empty ${diff} msg=DIFF DETECTED! \ No newline at end of file diff --git a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_FOLDER/find_all.robot b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_FOLDER/find_all.robot index 7c3ab575..9d0c235f 100644 --- a/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_FOLDER/find_all.robot +++ b/tests/robot/AQL_TESTS/FOLDER/FROM_FOLDER_CONTAINS_FOLDER/find_all.robot @@ -15,10 +15,13 @@ Find All: SELECT f1/uid/value, f1/name/value, f2/uid/value, f2/name/value FROM F ${query} Set Variable SELECT f1/uid/value, f1/name/value, f2/uid/value, f2/name/value FROM FOLDER f1 CONTAINS FOLDER f2 Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 10 - ${expected_result} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_contains_folder_find_all.json + ${expected_result_file} Set Variable + ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_contains_folder_find_all.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${expected_result} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_order=${TRUE} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! diff --git a/tests/robot/AQL_TESTS/FOLDER/SELECT_PATHS_IN_FOLDER/find_items.robot b/tests/robot/AQL_TESTS/FOLDER/SELECT_PATHS_IN_FOLDER/find_items.robot index c5d4aef6..0fe7f4c4 100644 --- a/tests/robot/AQL_TESTS/FOLDER/SELECT_PATHS_IN_FOLDER/find_items.robot +++ b/tests/robot/AQL_TESTS/FOLDER/SELECT_PATHS_IN_FOLDER/find_items.robot @@ -20,23 +20,16 @@ ${q} SELECT f/uid/value, f/name/value, f/archetype_node_id, f/items/id/value F *** Test Cases *** Find Items: ${q} Set Test Variable ${query} ${q} - ${temporary_file} Set Variable - ... ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_find_items_tmp.json Set AQL And Execute Ad Hoc Query ${query} Length Should Be ${resp_body['rows']} 2 - ${expected_file} Set Variable expected_folder_find_items.json - ${expected_res_tmp} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/${expected_file} - ${file_without_replaced_vars} Get File ${expected_res_tmp} - ${data_replaced_vars} Replace Variables ${file_without_replaced_vars} - Create File ${temporary_file} - ... ${data_replaced_vars} + ${expected_result_file} Set Variable ${EXPECTED_JSON_DATA_SETS}/folder/expected_folder_find_items.json ${exclude_paths} Create List root['meta'] root['q'] - ${diff} compare json-string with json-file - ... ${resp_body_actual} ${temporary_file} exclude_paths=${exclude_paths} + ${expected_json} Get File And Replace Dynamic Vars In File And Store As String + ... test_data_file=${expected_result_file} + ${diff} compare json-strings + ... ${resp_body_actual} ${expected_json} exclude_paths=${exclude_paths} ... ignore_string_case=${TRUE} Should Be Empty ${diff} msg=DIFF DETECTED! - [Teardown] Remove File ${temporary_file} - *** Keywords *** diff --git a/tests/robot/_resources/keywords/aql_keywords.robot b/tests/robot/_resources/keywords/aql_keywords.robot index fe61641d..18a9264b 100644 --- a/tests/robot/_resources/keywords/aql_keywords.robot +++ b/tests/robot/_resources/keywords/aql_keywords.robot @@ -385,3 +385,12 @@ Set Debug Options In Dict Set Test Variable ${query_plan} ${query_plan} [Return] ${debug_headers} +Get File And Replace Dynamic Vars In File And Store As String + # Reads file identified by full path provided to test_data_file + # Replace all variables from the readed file content if it contains any + # Returns json with replaced variables + [Arguments] ${test_data_file} + ${json_str} Get File ${test_data_file} + ${json_str_replaced} Replace Variables ${json_str} + Log ${json_str_replaced} + [return] ${json_str_replaced} \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_folder_in_folder.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_folder_in_folder.json index 32f7fda9..b0e229fe 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_folder_in_folder.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_folder_in_folder.json @@ -15,7 +15,7 @@ ], "rows": [ [ - "${c_uid4}::local.ehrbase.org::1" + "${c_uid4}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_multi_compo_in_folder.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_multi_compo_in_folder.json index fa0a5732..ad7d7a4b 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_multi_compo_in_folder.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_multi_compo_in_folder.json @@ -15,10 +15,10 @@ ], "rows": [ [ - "${c_uid1}::local.ehrbase.org::1" + "${c_uid1}::${system_id_with_tenant}::1" ], [ - "${c_uid2}::local.ehrbase.org::1" + "${c_uid2}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_over_multiple_ehrs.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_over_multiple_ehrs.json index 5b577f9c..1981259c 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_over_multiple_ehrs.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_contains_compo_over_multiple_ehrs.json @@ -20,11 +20,11 @@ "rows": [ [ "${ehr_id1}", - "${c_uid4}::local.ehrbase.org::1" + "${c_uid4}::${system_id_with_tenant}::1" ], [ "${ehr_id2}", - "${c_uid4b}::local.ehrbase.org::1" + "${c_uid4b}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_all.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_all.json index 70f3892e..f52ed34d 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_all.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_all.json @@ -23,7 +23,7 @@ ], "rows": [ [ - "60e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "60e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "openEHR-EHR-FOLDER.generic.v1" ], diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_by_name_root1.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_by_name_root1.json index 761e426e..f0408032 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_by_name_root1.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_find_by_name_root1.json @@ -15,7 +15,7 @@ ], "rows": [ [ - "60e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1" + "60e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_all.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_all.json index 402703a1..17d2064a 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_all.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_all.json @@ -19,51 +19,51 @@ ], "rows": [ [ - "${c_uid1}::local.ehrbase.org::1", + "${c_uid1}::${system_id_with_tenant}::1", "root1" ], [ - "${c_uid2}::local.ehrbase.org::1", + "${c_uid2}::${system_id_with_tenant}::1", "root1" ], [ - "${c_uid3}::local.ehrbase.org::1", + "${c_uid3}::${system_id_with_tenant}::1", "root1" ], [ - "${c_uid4}::local.ehrbase.org::1", + "${c_uid4}::${system_id_with_tenant}::1", "root1" ], [ - "${c_uid1}::local.ehrbase.org::1", + "${c_uid1}::${system_id_with_tenant}::1", "subfolder1" ], [ - "${c_uid2}::local.ehrbase.org::1", + "${c_uid2}::${system_id_with_tenant}::1", "subfolder1" ], [ - "${c_uid3}::local.ehrbase.org::1", + "${c_uid3}::${system_id_with_tenant}::1", "subfolder1" ], [ - "${c_uid4}::local.ehrbase.org::1", + "${c_uid4}::${system_id_with_tenant}::1", "subfolder1" ], [ - "${c_uid2}::local.ehrbase.org::1", + "${c_uid2}::${system_id_with_tenant}::1", "subsubfolder1" ], [ - "${c_uid4}::local.ehrbase.org::1", + "${c_uid4}::${system_id_with_tenant}::1", "subsubfolder1" ], [ - "${c_uid4}::local.ehrbase.org::1", + "${c_uid4}::${system_id_with_tenant}::1", "subsubsubfolder2" ], [ - "${c_uid3}::local.ehrbase.org::1", + "${c_uid3}::${system_id_with_tenant}::1", "subsubfolder2" ] ] diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_root1.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_root1.json index a5fe5ba4..9b97bf46 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_root1.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_root1.json @@ -15,16 +15,16 @@ ], "rows": [ [ - "${c_uid1}::local.ehrbase.org::1" + "${c_uid1}::${system_id_with_tenant}::1" ], [ - "${c_uid2}::local.ehrbase.org::1" + "${c_uid2}::${system_id_with_tenant}::1" ], [ - "${c_uid3}::local.ehrbase.org::1" + "${c_uid3}::${system_id_with_tenant}::1" ], [ - "${c_uid4}::local.ehrbase.org::1" + "${c_uid4}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subfolder1.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subfolder1.json index bf737d63..fef8251e 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subfolder1.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subfolder1.json @@ -15,16 +15,16 @@ ], "rows": [ [ - "${c_uid1}::local.ehrbase.org::1" + "${c_uid1}::${system_id_with_tenant}::1" ], [ - "${c_uid2}::local.ehrbase.org::1" + "${c_uid2}::${system_id_with_tenant}::1" ], [ - "${c_uid3}::local.ehrbase.org::1" + "${c_uid3}::${system_id_with_tenant}::1" ], [ - "${c_uid4}::local.ehrbase.org::1" + "${c_uid4}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder1.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder1.json index 3e829e2f..09de6d94 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder1.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder1.json @@ -15,10 +15,10 @@ ], "rows": [ [ - "${c_uid2}::local.ehrbase.org::1" + "${c_uid2}::${system_id_with_tenant}::1" ], [ - "${c_uid4}::local.ehrbase.org::1" + "${c_uid4}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder2.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder2.json index 10d6ee6f..0473d652 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder2.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubfolder2.json @@ -15,7 +15,7 @@ ], "rows": [ [ - "${c_uid3}::local.ehrbase.org::1" + "${c_uid3}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubsubfolder2.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubsubfolder2.json index 980a5e97..1d1301eb 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubsubfolder2.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_compo_select_by_name_subsubsubfolder2.json @@ -15,7 +15,7 @@ ], "rows": [ [ - "${c_uid4}::local.ehrbase.org::1" + "${c_uid4}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_folder_find_all.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_folder_find_all.json index 22a6208e..75769116 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_folder_find_all.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_contains_folder_find_all.json @@ -27,7 +27,7 @@ ], "rows": [ [ - "00e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "00e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "e9ae5700-d969-430a-b4f2-445e3091a901", "subsubfolder2" @@ -39,7 +39,7 @@ "subsubfolder2" ], [ - "00e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "00e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "13661fe2-1e16-4c75-a10d-9b8040487a72", "subsubfolder1" @@ -51,13 +51,13 @@ "subsubfolder1" ], [ - "00e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "00e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "ac1e12cb-b9db-4f15-a8aa-4e62a9d97231", "subfolder2" ], [ - "00e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "00e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "3cb9efa5-fe71-49e9-a02f-d38835c27d1b", "subsubfolder2" @@ -69,7 +69,7 @@ "subsubfolder2" ], [ - "00e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "00e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "0cc504b1-4d6d-4cd5-81d9-0ef1b870edb3", "subsubfolder1" @@ -81,7 +81,7 @@ "subsubfolder1" ], [ - "00e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "00e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "d936409e-901f-4994-8d33-ed104d460151", "subfolder1" diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_by_ehr_id.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_by_ehr_id.json index 9c0b429e..f5dfa41a 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_by_ehr_id.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_by_ehr_id.json @@ -20,7 +20,7 @@ "rows": [ [ "${ehr_id1}", - "60e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1" + "60e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1" ], [ "${ehr_id1}", diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_items.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_items.json index 3eec64e6..d083cf78 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_items.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_folder_find_items.json @@ -27,13 +27,13 @@ ], "rows": [ [ - "40e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "40e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "openEHR-EHR-FOLDER.generic.v1", "${c_uid1}" ], [ - "40e952ca-a5b2-4f24-8d37-59240fd37020::local.ehrbase.org::1", + "40e952ca-a5b2-4f24-8d37-59240fd37020::${system_id_with_tenant}::1", "root1", "openEHR-EHR-FOLDER.generic.v1", "${c_uid2}" diff --git a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_multiple_ehrs_and_compo_select_by_ids.json b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_multiple_ehrs_and_compo_select_by_ids.json index 5f1389d0..33128d6f 100644 --- a/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_multiple_ehrs_and_compo_select_by_ids.json +++ b/tests/robot/_resources/test_data_sets/aql/fields_and_results/folder/expected_multiple_ehrs_and_compo_select_by_ids.json @@ -25,7 +25,7 @@ [ "${ehr_id2}", "70939d97-8add-4419-b27c-516e64b1c744", - "${c_uid4b}::local.ehrbase.org::1" + "${c_uid4b}::${system_id_with_tenant}::1" ] ] } \ No newline at end of file