File tree 2 files changed +15
-0
lines changed
x-pack/plugin/src/test/resources/rest-api-spec
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 30
30
"realm_name" :{
31
31
"type" :" string" ,
32
32
"description" :" realm name of the user who created this API key to be retrieved"
33
+ },
34
+ "owner" : {
35
+ "type" :" boolean" ,
36
+ "default" : false ,
37
+ "description" :" flag to query API keys owned by the currently authenticated user"
33
38
}
34
39
}
35
40
}
Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ teardown:
176
176
- match : { "api_keys.0.invalidated": false }
177
177
- is_true : " api_keys.0.creation"
178
178
179
+ - do :
180
+ headers :
181
+ Authorization : " Basic YXBpX2tleV91c2VyOngtcGFjay10ZXN0LXBhc3N3b3Jk" # api_key_user
182
+ security.get_api_key :
183
+ owner : true
184
+ - length : { "api_keys" : 1 }
185
+ - match : { "api_keys.0.username": "api_key_user" }
186
+ - match : { "api_keys.0.invalidated": false }
187
+ - is_true : " api_keys.0.creation"
188
+
179
189
---
180
190
" Test invalidate api key " :
181
191
- skip :
You can’t perform that action at this time.
0 commit comments