Skip to content

Commit

Permalink
[API] Updates cross cluster api key test
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed May 16, 2024
1 parent df212cf commit afebcc4
Showing 1 changed file with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
username: user,
body: {
password: password,
roles: [ 'admin_role' ],
roles: ['admin_role'],
full_name: 'Admin user'
}
)
Expand All @@ -45,31 +45,22 @@
it 'updates api key' do
response = ADMIN_CLIENT.security.create_cross_cluster_api_key(
body: {
name: "my-cc-api-key",
expiration: "1d",
name: 'my-cc-api-key',
expiration: '1d',
access: {
search: [
{
names: ["logs*"],
query: {
term: { "category": "shared" }
},
field_security: {
grant: ["*"],
except: ["private"]
}
}
{ names: ['logs*'] }
],
replication: [
{
names: ["archive"],
names: ['archive'],
allow_restricted_indices: false
}
]
},
metadata: {
answer: 42,
tag: "dev"
tag: 'dev'
}
}
)
Expand Down

0 comments on commit afebcc4

Please sign in to comment.