Skip to content

Commit

Permalink
trying to create
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Aug 15, 2024
1 parent 7803383 commit e04fec9
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion tests/replication/replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,53 @@ chapters:
method: GET
parameters:
username: admin

- synopsis: Create leader role.
path: /_plugins/_security/api/roles/leader_role
method: PUT
request:
payload:
cluster_permissions:
- "cluster:monitor/state"

Check failure on line 53 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
index_permissions:
- index_patterns: ["*"]

Check failure on line 55 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
allowed_actions: ["indices:data/read/*"]

Check failure on line 56 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
response:
status: 200

- synopsis: Create follower role.
path: /_plugins/_security/api/roles/cross_cluster_replication_follower_full_access
method: PUT
request:
payload:
cluster_permissions:
- "cluster:admin/xpack/ccr/auto_follow_pattern/*"

Check failure on line 66 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 66 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Unknown word: "xpack"
index_permissions:
- index_patterns: ["*"]

Check failure on line 68 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
allowed_actions: ["indices:data/write/*"]

Check failure on line 69 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
response:
status: 200

- synopsis: Map leader role to user.
path: /_plugins/_security/api/rolesmapping/leader_role
method: PUT
request:
payload:
backend_roles: ["admin"]

Check failure on line 78 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar

Check failure on line 78 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
users: ["admin"]

Check failure on line 79 in tests/replication/replica.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar
response:
status: 200

- synopsis: Map follower role to user.
path: /_plugins/_security/api/rolesmapping/cross_cluster_replication_follower_full_access
method: PUT
request:
payload:
backend_roles: ["admin"]
users: ["admin"]
response:
status: 200

- synopsis: Establish connection.
path: /_cluster/settings
method: PUT
Expand All @@ -55,6 +102,7 @@ chapters:
seeds: ['172.22.0.3:9300']
response:
status: 200

- synopsis: Start replication.
path: /_plugins/_replication/{index}/_start
version: '>= 1.1'
Expand All @@ -70,6 +118,7 @@ chapters:
follower_cluster_role: cross_cluster_replication_follower_full_access
response:
status: 200

- synopsis: Get replication stats.
path: /_plugins/_replication/{index}/_status
version: '>= 1.1'
Expand All @@ -78,24 +127,28 @@ chapters:
index: books-names
response:
status: 200

- synopsis: Get leader stats.
path: /_plugins/_replication/leader_stats
version: '>= 1.1'
method: GET
response:
status: 200

- synopsis: Get follower stats.
path: /_plugins/_replication/follower_stats
version: '>= 1.1'
method: GET
response:
status: 200

- synopsis: Get auto-follow stats.
path: /_plugins/_replication/autofollow_stats
version: '>= 1.1'
method: GET
response:
status: 200

- synopsis: Update settings.
path: /_plugins/_replication/{index}/_update
version: '>= 1.1'
Expand All @@ -109,6 +162,7 @@ chapters:
index.number_of_replicas: 2
response:
status: 200

- synopsis: Create replication rule.
path: /_plugins/_replication/_autofollow
version: '>= 1.1'
Expand All @@ -123,6 +177,7 @@ chapters:
follower_cluster_role: admin
response:
status: 200

- synopsis: Delete replication rule.
path: /_plugins/_replication/_autofollow
version: '>= 1.1'
Expand All @@ -132,4 +187,4 @@ chapters:
leader_alias: my-connection-alias
name: books
response:
status: 200
status: 200

0 comments on commit e04fec9

Please sign in to comment.