Skip to content

Commit

Permalink
fixing the testing section so that it works (#154)
Browse files Browse the repository at this point in the history
the previous approach assumed that you could set the delivery_id, which you can't. As a result, the confirmation listing call fails with a 404. this captures the delivery_id and then uses that value to see the others. Fixes -- or addresses -- #132
  • Loading branch information
squillace authored Mar 10, 2020
1 parent 2d5da1c commit 122e03f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,9 @@ You can send delivery requests and check their statuses using curl.
Since the certificate used for TLS is self-signed, the request disables TLS validation using the '-k' option.

```bash
curl -X POST "https://$EXTERNAL_INGEST_FQDN/api/deliveryrequests" --header 'Content-Type: application/json' --header 'Accept: application/json' -k -i -d '{
curl -X POST "https://$EXTERNAL_INGEST_FQDN/api/deliveryrequests" --header 'Content-Type: application/json' --header 'Accept: application/json' -k -d '{
"confirmationRequired": "None",
"deadline": "",
"deliveryId": "mydelivery",
"dropOffLocation": "drop off",
"expedited": true,
"ownerId": "myowner",
Expand All @@ -559,13 +558,13 @@ curl -X POST "https://$EXTERNAL_INGEST_FQDN/api/deliveryrequests" --header 'Cont
},
"pickupLocation": "my pickup",
"pickupTime": "2019-05-08T20:00:00.000Z"
}'
}' > deliveryresponse.json
```

### Check the request status

```bash
curl "https://$EXTERNAL_INGEST_FQDN/api/deliveries/mydelivery" --header 'Accept: application/json' -k -i
DELIVERY_ID=$(cat deliveryresponse.json | jq -r .deliveryId)
curl "https://$EXTERNAL_INGEST_FQDN/api/deliveries/$DELIVERY_ID" --header 'Accept: application/json' -k
```

## Optional steps
Expand Down

0 comments on commit 122e03f

Please sign in to comment.