diff --git a/tests/replication/replica.yaml b/tests/replication/replica.yaml index 3e4e07eed..e6aee9780 100644 --- a/tests/replication/replica.yaml +++ b/tests/replication/replica.yaml @@ -45,7 +45,9 @@ chapters: username: admin - synopsis: Create leader role. - path: /_plugins/_security/api/roles/leader_role + path: /_plugins/_security/api/roles/{role} + parameters: + role: leader_role method: PUT request: payload: @@ -58,8 +60,10 @@ chapters: status: 200 - synopsis: Create follower role. - path: /_plugins/_security/api/roles/cross_cluster_replication_follower_full_access + path: /_plugins/_security/api/roles/{role} method: PUT + parameters: + role: cross_cluster_replication_follower_full_access request: payload: cluster_permissions: @@ -71,8 +75,10 @@ chapters: status: 200 - synopsis: Map leader role to user. - path: /_plugins/_security/api/rolesmapping/leader_role + path: /_plugins/_security/api/rolesmapping/{role} method: PUT + parameters: + role: leader_role request: payload: backend_roles: ["admin"] @@ -81,8 +87,10 @@ chapters: status: 200 - synopsis: Map follower role to user. - path: /_plugins/_security/api/rolesmapping/cross_cluster_replication_follower_full_access + path: /_plugins/_security/api/rolesmapping/{role} method: PUT + parameters: + role: cross_cluster_replication_follower_full_access request: payload: backend_roles: ["admin"]