Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve documentation of some e2e tests #2201

Merged
merged 1 commit into from
Nov 20, 2024
Merged
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
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