Skip to content

Commit

Permalink
document existing, relevant e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
allentiak authored and alexanderkiel committed Nov 20, 2024
1 parent 18ad1b6 commit 4fd112f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/cancel-async.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -e

#
# This script verifies the correct cancellation of async requests.

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
. "$SCRIPT_DIR/util.sh"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash -e

#
# This script fetches the Patient/0 expecting that the resource content is missing.
# This script fetches the Patient/0 expecting that the resource content
# to be missing.
#

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
Expand Down
6 changes: 5 additions & 1 deletion .github/scripts/patient-purge.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#!/bin/bash -e

#
# This script verifies that the patient and all resources that are part of the
# patient compartment are purged.

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
. "$SCRIPT_DIR/util.sh"

BASE="http://localhost:8080/fhir"
PATIENT_IDENTIFIER="X26238298X"
PATIENT_ID=$(curl -s "$BASE/Patient?identifier=$PATIENT_IDENTIFIER" | jq -r '.entry[0].resource.id')

echo "calling \$purge with GET isn't possible"
echo "calling \$purge via GET should not be allowed"
test "GET response code" "$(curl -s -o /dev/null -w '%{response_code}' "$BASE/Patient/$PATIENT_ID/\$purge")" "405"

OUTCOME="$(curl -s -XPOST "$BASE/Patient/$PATIENT_ID/\$purge")"
Expand Down

0 comments on commit 4fd112f

Please sign in to comment.