-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add test to cover ehrbase/ehrbase#1424
- Loading branch information
1 parent
1fbefb2
commit ec6fe73
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...obot/COMPOSITION_TESTS/CREATE_COMPO_2/create_composition_fail_nodes_not_in_template.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
*** Settings *** | ||
Documentation Validation test suite | ||
... ${\n}Covers fix provided in: | ||
... https://github.com/ehrbase/ehrbase/pull/1424 | ||
Metadata TOP_TEST_SUITE COMPOSITION | ||
|
||
Resource ../../_resources/keywords/composition_keywords.robot | ||
Resource ../../_resources/keywords/admin_keywords.robot | ||
Resource ../../_resources/keywords/template_opt1.4_keywords.robot | ||
|
||
Suite Setup Set Library Search Order For Tests | ||
|
||
|
||
*** Variables *** | ||
${opt_file} nodes_in_template_invalid.opt | ||
${composition_file} nodes_in_template_invalid__compo.json | ||
${template_id} nodes_in_template_invalid | ||
|
||
|
||
*** Test Cases *** | ||
Create Composition Fails If Nodes Are Not Present In Template | ||
[Tags] Negative | ||
Upload OPT all_types/nodes_in_template_invalid.opt | ||
create EHR | ||
commit composition format=CANONICAL_JSON | ||
... composition=${composition_file} | ||
Should Be Equal As Strings ${response.status_code} 422 | ||
Should Be Equal As Strings ${response.json()['error']} Unprocessable Entity | ||
Should Contain ${response.json()['message']} not in template | ||
[Teardown] Run Keywords | ||
... (admin) delete ehr AND | ||
... Delete Template Using API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters