Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (37 loc) · 1.24 KB

test.md

File metadata and controls

52 lines (37 loc) · 1.24 KB

Test

  • Test using Postman
  • Test from the CLI

Test using Postman

  1. Open Postman
alt text
Postman
  1. Open collection in docs folder
alt text
Import collection into Postman
  1. Select Request Endpoint-Submodel
alt text
Select a request
  1. Invoke Send to test the interaction
alt text
Invoke Send to test the interaction

Test from the CLI

From the directory root, execute in the CLI:

# login/pass as specified in .compose-envs/ files
curl -u admin:admin \
    --header "Content-Type: application/json" \
    --request POST \
    --data @./docs/postman/sample_requests/sample_interaction.json \
    http://localhost:2000/interaction \
    | node <<< "var o = $(cat); console.log(JSON.stringify(o, null, 4));"

If everything is OK, the above command should return a JSON formatted reply (as shown in Postman above).