From 78f73ff909f05211b1358cd22fe03b1abce1b143 Mon Sep 17 00:00:00 2001 From: Tokesh Date: Sun, 10 Nov 2024 04:01:09 +0500 Subject: [PATCH] giving all access to users Signed-off-by: Tokesh --- tests/replication/replica.yaml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/tests/replication/replica.yaml b/tests/replication/replica.yaml index f60b5bc34..af4b52bfb 100644 --- a/tests/replication/replica.yaml +++ b/tests/replication/replica.yaml @@ -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.