generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved and renamed hrl script to simplify and clean up file org * Simplify command hurl parameter + cleanup * Refactored to make more generic and reusable functions * Renamed message_submission_utils.sh => utils.sh * Renamed message_submission_utils.sh => utils.sh * Refactored to extract functions and reuse utils + clean up * [WIP] Added handling of deployed environments for submit_message.sh * Refactored to handle deployed environments, change parameters and variable naming for consistency, and clean up * Added error handling for hurl calls, add user prompt for outbound submission id when not possible to get, plus clean up * Typo fix * Updated readme to add deployed env options * Added handling of empty ti client private key and improved help messages
- Loading branch information
1 parent
bfdafa4
commit e1b9cf5
Showing
14 changed files
with
711 additions
and
551 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
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,19 @@ | ||
#!/bin/bash | ||
|
||
source ./utils.sh | ||
|
||
client= | ||
audience=https://epicproxy-np.et0502.epichosted.com/FhirProxy/oauth2/token | ||
secret=/path/to/ucsd-epic-private-key.pem | ||
root=$CDCTI_HOME/examples/CA/ | ||
fpath="$1" | ||
shift | ||
|
||
jwt_token=$(generate_jwt "$client" "$audience" "$secret") || fail "Failed to generate JWT token" | ||
|
||
hurl \ | ||
--variable "fpath=$fpath" \ | ||
--file-root "$root" \ | ||
--variable "jwt=$jwt_token" \ | ||
epic/results.hurl \ | ||
$@ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.