Skip to content

Commit

Permalink
fix: use system_id_with_tenant to send its value dynamically to expec…
Browse files Browse the repository at this point in the history
…ted test data and AQL expr
  • Loading branch information
vladislavploaia committed Oct 10, 2024
1 parent 8fcbfd0 commit a2c0f24
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Precondition
Upload OPT For AQL conformance_ehrbase.de.v0.opt
###
Create EHR For AQL
${tenant_id} Evaluate '${system_id_with_tenant}'.split('.')[0:1]
Set Suite Variable ${tenant_id_from_system_id} ${tenant_id}[0].
Set Suite Variable ${ehr_id1} ${ehr_id}
Commit Contribution For AQL minimal_persistent/minimal_persistent.contribution.json
Set Suite Variable ${compo_uid_1} ${versions[0]['id']['value']}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Precondition
Upload OPT For AQL conformance_ehrbase.de.v0.opt
###
Create EHR For AQL
${tenant_id} Evaluate '${system_id_with_tenant}'.split('.')[0:1]
Set Suite Variable ${tenant_id_from_system_id} ${tenant_id}[0].
Set Suite Variable ${ehr_id1} ${ehr_id}
Commit Contribution For AQL minimal_persistent/minimal_persistent.contribution.json
Set Suite Variable ${compo_uid_1} ${versions[0]['id']['value']}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
${query_nr},${path},${where},${order_by},${expected_file},${nr_of_results}
1.,cv/uid/value,"WHERE cv/uid/value = '${compo_uid_2_v3}'",ORDER BY cv/uid/value,expected_version_composition_uid_value.json,1
2.,cv/commit_audit/system_id,"WHERE cv/commit_audit/system_id > 'local.'",${EMPTY},expected_version_composition_system_id.json,4
2.,cv/commit_audit/system_id,"WHERE cv/commit_audit/system_id > '${tenant_id_from_system_id}'",${EMPTY},expected_version_composition_system_id.json,4
3.,cv/commit_audit/change_type,${EMPTY},${EMPTY},expected_version_composition_change_type.json,4
4.,cv/commit_audit/change_type/value,"WHERE cv/commit_audit/change_type/value = 'creation'",ORDER BY cv/commit_audit/change_type/value,expected_version_composition_change_type_value.json,1
5.,cv/commit_audit/change_type/defining_code/code_string,"WHERE cv/commit_audit/change_type/defining_code/code_string = '251'",ORDER BY cv/commit_audit/change_type/defining_code/code_string DESC,expected_version_composition_code_string.json,3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
${query_nr},${path},${where},${order_by},${expected_file},${nr_of_results}
1.,cv/uid/value,"WHERE cv/uid/value = '${compo_uid_7_v2}'",ORDER BY cv/uid/value,expected_version_observation_uid_value.json,1
2.,cv/commit_audit/system_id,"WHERE cv/commit_audit/system_id > 'local.'",${EMPTY},expected_version_observation_system_id.json,4
2.,cv/commit_audit/system_id,"WHERE cv/commit_audit/system_id > '${tenant_id_from_system_id}'",${EMPTY},expected_version_observation_system_id.json,4
3.,cv/commit_audit/change_type,"WHERE cv/commit_audit/change_type/value = 'creation'",${EMPTY},expected_version_observation_change_type.json,1
4.,cv/commit_audit/change_type/value,"WHERE cv/commit_audit/change_type/value = 'creation'",ORDER BY cv/commit_audit/change_type/value DESC,expected_version_observation_change_type_value.json,1
5.,cv/commit_audit/change_type/defining_code/code_string,"WHERE cv/commit_audit/change_type/defining_code/code_string = '249'",ORDER BY cv/commit_audit/change_type/defining_code/code_string ASC,expected_version_observation_code_string.json,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
],
"rows": [
[
"local.ehrbase.org"
"${system_id_with_tenant}"
],
[
"local.ehrbase.org"
"${system_id_with_tenant}"
]
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
],
"rows": [
[
"local.ehrbase.org"
"${system_id_with_tenant}"
],
[
"local.ehrbase.org"
"${system_id_with_tenant}"
],
[
"local.ehrbase.org"
"${system_id_with_tenant}"
],
[
"local.ehrbase.org"
"${system_id_with_tenant}"
]
]
}

0 comments on commit a2c0f24

Please sign in to comment.