-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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,16 @@ | ||
#!/bin/bash -e | ||
|
||
BASE_OUTPUT_DIR=$PWD/.github/integration-test/missing-permissions-test | ||
mkdir "$BASE_OUTPUT_DIR" | ||
|
||
OUTPUT=$(docker run -v "$PWD"/.github/integration-test/measures/code-measure.json:/app/measure.json \ | ||
-v "$BASE_OUTPUT_DIR":/app/output:ro --network integration-test_testing-network -e FHIR_SERVER=http://fhir-server:8080/fhir \ | ||
-it fhir-data-evaluator) | ||
EXIT_CODE=$? | ||
|
||
if [ "$OUTPUT" = "Missing writing permissions on output directory" ] && [ $EXIT_CODE = 1 ]; then | ||
echo "OK 👍: docker container exited with code 1 and with the correct error message" | ||
else | ||
echo "Fail 😞: docker container did not exit with code 1 or with a different error message" | ||
exit 1 | ||
fi |
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