|
@@ -176,6 +176,16 @@ teardown:
|
|
|
- match: { "api_keys.0.invalidated": false }
|
|
|
- is_true: "api_keys.0.creation"
|
|
|
|
|
|
+ - do:
|
|
|
+ headers:
|
|
|
+ Authorization: "Basic YXBpX2tleV91c2VyOngtcGFjay10ZXN0LXBhc3N3b3Jk" # api_key_user
|
|
|
+ security.get_api_key:
|
|
|
+ owner: true
|
|
|
+ - length: { "api_keys" : 1 }
|
|
|
+ - match: { "api_keys.0.username": "api_key_user" }
|
|
|
+ - match: { "api_keys.0.invalidated": false }
|
|
|
+ - is_true: "api_keys.0.creation"
|
|
|
+
|
|
|
---
|
|
|
"Test invalidate api key":
|
|
|
- skip:
|