Skip to content

Commit

Permalink
giving all access to users
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Nov 9, 2024
1 parent 2006adb commit 78f73ff
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions tests/replication/replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,41 +61,22 @@ chapters:
request:
payload:
cluster_permissions:
- "cluster:admin/plugins/replication/index/setup/validate"
- "cluster:admin/plugins/replication/autofollow/update"
- 'cluster:all'
index_permissions:
- index_patterns: ["books-*"]
- index_patterns: ["*"]
allowed_actions:
- "indices:admin/plugins/replication/index/setup/validate"
- "indices:admin/plugins/replication/index/start"
- "indices:admin/plugins/replication/index/pause"
- "indices:admin/plugins/replication/index/resume"
- "indices:admin/plugins/replication/index/stop"
- "indices:admin/plugins/replication/index/update"
- "indices:admin/plugins/replication/index/status_check"
- "indices:data/write/plugins/replication/changes"
["*"]
response:
status: 201
- synopsis: Map leader role to user.
path: /_plugins/_security/api/rolesmapping/{role}
method: PUT
parameters:
role: leader_role
request:
payload:
backend_roles: ["admin"]
users: ["admin"]
response:
status: 201
- synopsis: Map follower role to user.
path: /_plugins/_security/api/rolesmapping/{role}
method: PUT
parameters:
role: follower
role: all_access
request:
payload:
backend_roles: ["admin"]
users: ["admin"]
backend_roles: ["admin", "leader-role", "follower"]
users: ["admin", "leader-role", "follower"]
response:
status: 201
- synopsis: Getting all role mappings.
Expand Down

0 comments on commit 78f73ff

Please sign in to comment.