diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-09-26 13:12:38 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-09-26 13:12:38 +0000 |
commit | 492ad5d10a665dfa8e83e2a393f2455e3a05731b (patch) | |
tree | c751e77d3c7e92a5ecc0a2876977fe116b90a2b7 /yarns | |
parent | cdc6d7ae97b0d5aae29913b47a6af007164a7913 (diff) | |
download | qvisqve-492ad5d10a665dfa8e83e2a393f2455e3a05731b.tar.gz |
Add: scenario for testing /resource_types (GET only)
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/smoke.yarn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/yarns/smoke.yarn b/yarns/smoke.yarn index 92304eb..2fd3445 100644 --- a/yarns/smoke.yarn +++ b/yarns/smoke.yarn @@ -630,3 +630,22 @@ Don't sort. Then /offset and /limit are verboten. ... } FINALLY qvarn is stopped + + +# Handle resource types via API + +Qvarn API allows listing and looking at all the resource types it +knows about. In the future, it will allow manipulaing them as well. + + SCENARIO manage resource types + + GIVEN a running Qvarn instance + + WHEN client gets an authorization token with scope + ... "uapi_resource_types_get" + + WHEN client requests GET /resource_types using token + THEN HTTP status code is 200 OK + AND search result contains { "id": "/subjects" } + + FINALLY qvarn is stopped |