From 5cdd542fcdbeefe5454bbe336b36c9da1f7caacf Mon Sep 17 00:00:00 2001 From: Basilio Bogado <541149+basiliskus@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:00:11 -0700 Subject: [PATCH] Added hurl scripts for delivery and token RS endpoints --- scripts/hurl/rs/delivery.hurl | 15 +++++++++++++++ scripts/hurl/rs/token.hurl | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 scripts/hurl/rs/delivery.hurl create mode 100644 scripts/hurl/rs/token.hurl diff --git a/scripts/hurl/rs/delivery.hurl b/scripts/hurl/rs/delivery.hurl new file mode 100644 index 000000000..1d4abd692 --- /dev/null +++ b/scripts/hurl/rs/delivery.hurl @@ -0,0 +1,15 @@ +POST {{url}}/api/token +Content-Type: application/x-www-form-urlencoded +[FormParams] +scope: {{client-id}}.*.report +client_assertion: {{jwt}} +client_assertion_type: urn:ietf:params:oauth:client-assertion-type:jwt-bearer +grant_type: client_credentials + +HTTP 200 + +[Captures] +token: jsonpath "$['access_token']" + +GET {{url}}/api/waters/report/{{submissionid}}/delivery +Authorization: Bearer {{token}} diff --git a/scripts/hurl/rs/token.hurl b/scripts/hurl/rs/token.hurl new file mode 100644 index 000000000..6c8a3e8f6 --- /dev/null +++ b/scripts/hurl/rs/token.hurl @@ -0,0 +1,7 @@ +POST {{url}}/api/token +Content-Type: application/x-www-form-urlencoded +[FormParams] +scope: {{client-id}}.*.report +client_assertion: {{jwt}} +client_assertion_type: urn:ietf:params:oauth:client-assertion-type:jwt-bearer +grant_type: client_credentials