Skip to content

Commit

Permalink
add test with thin-edge.io use-case
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Jun 15, 2024
1 parent 41d7a7a commit 9af65f7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/manual/sessions/sessions_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,24 @@ tests:
- panic
contains:
- A c8y session has not been loaded. Please create or activate a session and try again

It supports requests without authorization and only setting C8Y_HOST:
command: |
env -i PATH="$PATH" C8Y_HOST="http://localhost:8001/c8y" \
c8y inventory list --pageSize 1 --dry --dryFormat json -c=false
exit-code: 0
stdout:
exactly: |
{
"url": "http://localhost:8001/c8y/inventory/managedObjects?pageSize=1",
"host": "http://localhost:8001",
"pathEncoded": "/c8y/inventory/managedObjects?pageSize=1",
"path": "/c8y/inventory/managedObjects",
"query": "pageSize=1",
"method": "GET",
"headers": {
"Accept": "application/json"
},
"shell": "curl -X 'GET' -H 'Accept: application/json' 'http://{host}/c8y/inventory/managedObjects?pageSize=1'",
"powershell": "curl -X 'GET' -H 'Accept: application/json' 'http://{host}/c8y/inventory/managedObjects?pageSize=1'"
}

0 comments on commit 9af65f7

Please sign in to comment.