Skip to content

Commit

Permalink
Add some http-client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Nov 3, 2023
1 parent 122dc51 commit 3f7c3a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/facility_api_test.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

### GET request with a header
GET http://{{host}}/v1/facility/nsls2/cycles/current
Accept: application/json


10 changes: 10 additions & 0 deletions tests/http-client.env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dev": {
"param": "variable from environment 'dev'",
"host": "http://localhost:8080/"
},
"production": {
"param": "variable from environment 'production'",
"host": "http://api.nsls2.bnl.gov/"
}
}

0 comments on commit 3f7c3a8

Please sign in to comment.