Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

PR-570 Cleanup #575

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 25 additions & 19 deletions .github/ISSUE_TEMPLATE/defect(robot).md
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,41 @@ labels: bug

## Test Case/s To Reproduce Issue

```
# path to test case
tests/robot/CONTRIBUTION_TESTS/...
```

```
# robot command to execute related test case(s) in your terminal/console
fhir-bridge/tests/robot/...
fhir-bridge/tests/robot/...
fhir-bridge/tests/robot/...


# Using test data from:

fhir-bridge/src/test/resources/...
fhir-bridge/src/test/resources/...
fhir-bridge/src/test/resources/...


# by test case name (wildcards possible)
robot -t "*Bug Case 01*" -d results -L TRACE robot/TEST_SUITE FOLDER

# by tag
robot -i failing -d results -L TRACE robot/TEST_SUITE_FOLDER
e.g.
008 Create Body Height
012 Create Body Weight
008 Create History of Travel (invalid/missing 'component[0] start date')


# robot command to execute related test case(s) in your terminal/console

robot -d results -L TRACE (PARAMETERS) robot


# Description


# Valid test suite folder names
COMPOSITION_TESTS
CONTRIBUTION_TESTS
DIRECTORY_TESTS
EHR_SERVICE_TESTS
EHR_STATUS_TESTS
KNOWLEDGE_TESTS
QUERY_SERVICE_TESTS
```

## Actual Result

foo


## Expected Result

bar
bar
10 changes: 6 additions & 4 deletions tests/robot/DIAGNOSTIC/01_create.robot
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

*** Settings ***
Resource ${EXECDIR}/robot/_resources/suite_settings.robot
Resource ../_resources/keywords/generic.robot

Test Setup generic.prepare new request session Prefer=return=representation
... Authorization=${AUTHORIZATION['Authorization']}
Expand Down Expand Up @@ -55,11 +56,12 @@ Force Tags diagnostic_create create
... 4. *POST* example JSON to diagnostic endpoint\n\n
... 5. *VALIDATE* the response status \n\n
... 6. *VALIDATE* outcome against diagnostic text
[Tags] diagnostic-report valid
[Tags] diagnostic-report invalid not-ready not-ready_bug

ehr.create new ehr 000_ehr_status.json
diagnostic.create diagnostic report create-diagnosticReport-without-observation.json
diagnostic.validate response - 201
validate response - 422 (missing observation)
[Teardown] TRACE GITHUB ISSUE 574 bug


003 Create Diagnostic Report Using Default Profile
Expand All @@ -69,7 +71,7 @@ Force Tags diagnostic_create create
... 4. *POST* example JSON to diagnostic endpoint\n\n
... 5. *VALIDATE* the response status \n\n
... 6. *VALIDATE* outcome against diagnostic text
[Tags] invalid
[Tags] diagnostic-report invalid

ehr.create new ehr 000_ehr_status.json
diagnostic.create diagnostic report create-diagnosticReport-with-default-profile.json
Expand All @@ -83,7 +85,7 @@ Force Tags diagnostic_create create
... 4. *POST* example JSON to diagnostic endpoint\n\n
... 5. *VALIDATE* the response status \n\n
... 6. *VALIDATE* outcome against diagnostic text
[Tags] invalid
[Tags] diagnostic-report invalid

ehr.create new ehr 000_ehr_status.json
diagnostic.create diagnostic report create-diagnosticReport-hls-genetics-result.json
Expand Down