File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
elasticsearch-api/spec/platinum/integration/api_key Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 30
30
username : user ,
31
31
body : {
32
32
password : password ,
33
- roles : [ 'admin_role' ] ,
33
+ roles : [ 'admin_role' ] ,
34
34
full_name : 'Admin user'
35
35
}
36
36
)
45
45
it 'updates api key' do
46
46
response = ADMIN_CLIENT . security . create_cross_cluster_api_key (
47
47
body : {
48
- name : " my-cc-api-key" ,
49
- expiration : "1d" ,
48
+ name : ' my-cc-api-key' ,
49
+ expiration : '1d' ,
50
50
access : {
51
51
search : [
52
- {
53
- names : [ "logs*" ] ,
54
- query : {
55
- term : { "category" : "shared" }
56
- } ,
57
- field_security : {
58
- grant : [ "*" ] ,
59
- except : [ "private" ]
60
- }
61
- }
52
+ { names : [ 'logs*' ] }
62
53
] ,
63
54
replication : [
64
55
{
65
- names : [ " archive" ] ,
56
+ names : [ ' archive' ] ,
66
57
allow_restricted_indices : false
67
58
}
68
59
]
69
60
} ,
70
61
metadata : {
71
62
answer : 42 ,
72
- tag : " dev"
63
+ tag : ' dev'
73
64
}
74
65
}
75
66
)
You can’t perform that action at this time.
0 commit comments