Skip to content

Commit

Permalink
Fixes schema path and lint error in a file
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jul 18, 2024
1 parent cd4709b commit 4c51de4
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions tests/security/with-api-prefix/account.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test account endpoint.

Expand All @@ -9,7 +9,7 @@ prologues:
username: test
request_body:
payload:
password: "myWeakPassword123!"
password: myWeakPassword123!
opendistro_security_roles: []
backend_roles: []
attributes: {}
Expand All @@ -23,24 +23,24 @@ chapters:
format: json
response:
status: 200
# TODO: following test can be changed to interact with test user once https://github.com/opensearch-project/opensearch-api-specification/issues/438 is implemented
# NOTE: this test assumes that admin password is set to `myStrongPassword123!`, please update this test to correct password. One more reason to have the above feature implemented to avoid this.
# TODO: following test can be changed to interact with test user once https://github.com/opensearch-project/opensearch-api-specification/issues/438 is implemented
# NOTE: this test assumes that admin password is set to `myStrongPassword123!`, please update this test to correct password. One more reason to have the above feature implemented to avoid this.
- synopsis: Change password.
path: /_plugins/_security/api/account
method: PUT
request_body:
payload:
current_password: "myStrongPassword123!"
password: "myWeakPassword123!"
current_password: myStrongPassword123!
password: myWeakPassword123!
response:
status: 200
epilogues:
- path: /_plugins/_security/api/account
method: PUT
request_body:
payload:
current_password: "myWeakPassword123!"
password: "myStrongPassword123!"
current_password: myWeakPassword123!
password: myStrongPassword123!
response:
status: 200
- path: /_plugins/_security/api/internalusers/{username}
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/action_groups.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test action_groups endpoints.
prologues:

Check failure on line 4 in tests/security/with-api-prefix/action_groups.yaml

View workflow job for this annotation

GitHub Actions / lint

Empty mapping values are forbidden
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/allowlist.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test allowlist endpoints.
prologues:

Check failure on line 4 in tests/security/with-api-prefix/allowlist.yaml

View workflow job for this annotation

GitHub Actions / lint

Empty mapping values are forbidden
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/audit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test audit endpoints.
prologues:

Check failure on line 4 in tests/security/with-api-prefix/audit.yaml

View workflow job for this annotation

GitHub Actions / lint

Empty mapping values are forbidden
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/authtoken.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test authtoken endpoints.
prologues:

Check failure on line 4 in tests/security/with-api-prefix/authtoken.yaml

View workflow job for this annotation

GitHub Actions / lint

Empty mapping values are forbidden
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/cache.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test cache endpoint.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/internal_users.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test internal users endpoints.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/migrate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test migrate endpoint.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/nodesdn.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test nodesdn endpoints.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/permissionsinfo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test permissionsinfo endpoint.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/roles.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test roles endpoints.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/rolesmapping.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test rolesmapping endpoint.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/securityconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test securityconfig endpoints.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/ssl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test ssl endpoints.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/tenancy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test tenancy endpoint.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/tenants.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test tenants endpoints.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/with-api-prefix/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test validate endpoint.
prologues:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/without-api-prefix/authinfo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test authinfo endpoint.
chapters:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/without-api-prefix/dashboardsinfo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test dashboardsinfo endpoint.
chapters:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/without-api-prefix/health.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test health endpoint.
chapters:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/without-api-prefix/sslinfo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test sslinfo endpoint.
chapters:
Expand Down
2 changes: 1 addition & 1 deletion tests/security/without-api-prefix/tenantinfo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test tenantinfo endpoint.
chapters:
Expand Down
4 changes: 2 additions & 2 deletions tests/security/without-api-prefix/upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test upgrade eligibility endpoints.
chapters:
Expand All @@ -14,6 +14,6 @@ chapters:
method: POST
request_body:
payload:
config: ["roles"]
config: [roles]
response:
status: 200
2 changes: 1 addition & 1 deletion tests/security/without-api-prefix/whoami.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test whoami endpoints.
chapters:
Expand Down

0 comments on commit 4c51de4

Please sign in to comment.