Skip to content

Commit 0ab2e0a

Browse files
committed
[API] Updates cross cluster api key test
1 parent 26baded commit 0ab2e0a

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

elasticsearch-api/spec/platinum/integration/api_key/api_key_cross_cluster_spec.rb

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
username: user,
3131
body: {
3232
password: password,
33-
roles: [ 'admin_role' ],
33+
roles: ['admin_role'],
3434
full_name: 'Admin user'
3535
}
3636
)
@@ -45,31 +45,22 @@
4545
it 'updates api key' do
4646
response = ADMIN_CLIENT.security.create_cross_cluster_api_key(
4747
body: {
48-
name: "my-cc-api-key",
49-
expiration: "1d",
48+
name: 'my-cc-api-key',
49+
expiration: '1d',
5050
access: {
5151
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*'] }
6253
],
6354
replication: [
6455
{
65-
names: ["archive"],
56+
names: ['archive'],
6657
allow_restricted_indices: false
6758
}
6859
]
6960
},
7061
metadata: {
7162
answer: 42,
72-
tag: "dev"
63+
tag: 'dev'
7364
}
7465
}
7566
)

0 commit comments

Comments
 (0)