Skip to content

Commit

Permalink
testing without security plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Nov 10, 2024
1 parent 7f1ea97 commit 3b977fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 44 deletions.
4 changes: 4 additions & 0 deletions tests/replication/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
- discovery.seed_hosts=opensearch-leader-node1
- node.name=opensearch-leader-node1
- path.repo=/tmp/opensearch/repo
- DISABLE_SECURITY_PLUGIN=true

Check failure on line 15 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'DISABLE_SECURITY_PLUGIN=true' should be before 'path.repo=/tmp/opensearch/repo'
- DISABLE_INSTALL_DEMO_CONFIG=true

Check failure on line 16 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'DISABLE_INSTALL_DEMO_CONFIG=true' should be before 'DISABLE_SECURITY_PLUGIN=true'
- plugins.index_state_management.job_interval=1
- network.host=0.0.0.0

Check failure on line 18 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'network.host=0.0.0.0' should be before 'plugins.index_state_management.job_interval=1'
ulimits:
Expand All @@ -36,6 +38,8 @@ services:
- discovery.seed_hosts=opensearch-follower-node1
- node.name=opensearch-follower-node1
- path.repo=/tmp/opensearch/repo
- DISABLE_SECURITY_PLUGIN=true

Check failure on line 41 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'DISABLE_SECURITY_PLUGIN=true' should be before 'path.repo=/tmp/opensearch/repo'
- DISABLE_INSTALL_DEMO_CONFIG=true

Check failure on line 42 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'DISABLE_INSTALL_DEMO_CONFIG=true' should be before 'DISABLE_SECURITY_PLUGIN=true'
- plugins.index_state_management.job_interval=1
- network.host=0.0.0.0

Check failure on line 44 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'network.host=0.0.0.0' should be before 'plugins.index_state_management.job_interval=1'
- cluster.remote.leader-cluster.seeds=172.22.0.3:9300

Check failure on line 45 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'cluster.remote.leader-cluster.seeds=172.22.0.3:9300' should be before 'network.host=0.0.0.0'
Expand Down
46 changes: 2 additions & 44 deletions tests/replication/replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,48 +35,6 @@ epilogues:
method: DELETE
status: [200, 404]
chapters:
- synopsis: Create leader role.
path: /_plugins/_security/api/roles/{role}
parameters:
role: leader_role
method: PUT
request:
payload:
cluster_permissions:
- 'cluster:all'
index_permissions:
- index_patterns: ["*"]
allowed_actions:
["*"]
response:
status: 201
- synopsis: Create follower role.
path: /_plugins/_security/api/roles/{role}
method: PUT
parameters:
role: follower
request:
payload:
cluster_permissions:
- 'cluster:all'
index_permissions:
- index_patterns: ["*"]
allowed_actions:
["*"]
response:
status: 201
- synopsis: Map leader role to user.
path: /_plugins/_security/api/rolesmapping/{role}
method: PUT
parameters:
role: all_access
request:
payload:
backend_roles: ["admin", "leader-role", "follower"]
users: ["admin", "leader-role", "follower"]
- synopsis: Getting all role mappings.
path: /_plugins/_security/api/rolesmapping
method: GET
- synopsis: Establish connection.
path: /_cluster/settings
method: PUT
Expand Down Expand Up @@ -149,7 +107,7 @@ chapters:
method: POST
request:
payload:
leader_alias: my-connection-alias
leader_alias: leader-cluster
name: books
pattern: 'books-*'
use_roles:
Expand All @@ -163,7 +121,7 @@ chapters:
method: DELETE
request:
payload:
leader_alias: my-connection-alias
leader_alias: leader-cluster
name: books
response:
status: 200

0 comments on commit 3b977fe

Please sign in to comment.