diff --git a/tests/security/with-api-prefix/account.yaml b/tests/security/with-api-prefix/account.yaml index c4a685192..0e24e1dc9 100644 --- a/tests/security/with-api-prefix/account.yaml +++ b/tests/security/with-api-prefix/account.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test account endpoint. @@ -9,7 +9,7 @@ prologues: username: test request_body: payload: - password: "myWeakPassword123!" + password: myWeakPassword123! opendistro_security_roles: [] backend_roles: [] attributes: {} @@ -23,15 +23,15 @@ 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: @@ -39,8 +39,8 @@ epilogues: method: PUT request_body: payload: - current_password: "myWeakPassword123!" - password: "myStrongPassword123!" + current_password: myWeakPassword123! + password: myStrongPassword123! response: status: 200 - path: /_plugins/_security/api/internalusers/{username} diff --git a/tests/security/with-api-prefix/action_groups.yaml b/tests/security/with-api-prefix/action_groups.yaml index c552db5e9..60d28642b 100644 --- a/tests/security/with-api-prefix/action_groups.yaml +++ b/tests/security/with-api-prefix/action_groups.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test action_groups endpoints. prologues: diff --git a/tests/security/with-api-prefix/allowlist.yaml b/tests/security/with-api-prefix/allowlist.yaml index 3856a4103..5799f23c8 100644 --- a/tests/security/with-api-prefix/allowlist.yaml +++ b/tests/security/with-api-prefix/allowlist.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test allowlist endpoints. prologues: diff --git a/tests/security/with-api-prefix/audit.yaml b/tests/security/with-api-prefix/audit.yaml index 0325d6467..5d72508a1 100644 --- a/tests/security/with-api-prefix/audit.yaml +++ b/tests/security/with-api-prefix/audit.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test audit endpoints. prologues: diff --git a/tests/security/with-api-prefix/authtoken.yaml b/tests/security/with-api-prefix/authtoken.yaml index 08558d587..4ffb4f05e 100644 --- a/tests/security/with-api-prefix/authtoken.yaml +++ b/tests/security/with-api-prefix/authtoken.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test authtoken endpoints. prologues: diff --git a/tests/security/with-api-prefix/cache.yaml b/tests/security/with-api-prefix/cache.yaml index 3600ab466..d536220f7 100644 --- a/tests/security/with-api-prefix/cache.yaml +++ b/tests/security/with-api-prefix/cache.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test cache endpoint. prologues: diff --git a/tests/security/with-api-prefix/internal_users.yaml b/tests/security/with-api-prefix/internal_users.yaml index bccbb9b76..b362e522a 100644 --- a/tests/security/with-api-prefix/internal_users.yaml +++ b/tests/security/with-api-prefix/internal_users.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test internal users endpoints. prologues: diff --git a/tests/security/with-api-prefix/migrate.yaml b/tests/security/with-api-prefix/migrate.yaml index 4310e3982..4d4d616dd 100644 --- a/tests/security/with-api-prefix/migrate.yaml +++ b/tests/security/with-api-prefix/migrate.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test migrate endpoint. prologues: diff --git a/tests/security/with-api-prefix/nodesdn.yaml b/tests/security/with-api-prefix/nodesdn.yaml index 037497709..14cdf254a 100644 --- a/tests/security/with-api-prefix/nodesdn.yaml +++ b/tests/security/with-api-prefix/nodesdn.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test nodesdn endpoints. prologues: diff --git a/tests/security/with-api-prefix/permissionsinfo.yaml b/tests/security/with-api-prefix/permissionsinfo.yaml index c21e48d5e..8a5a0d07e 100644 --- a/tests/security/with-api-prefix/permissionsinfo.yaml +++ b/tests/security/with-api-prefix/permissionsinfo.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test permissionsinfo endpoint. prologues: diff --git a/tests/security/with-api-prefix/roles.yaml b/tests/security/with-api-prefix/roles.yaml index 3cd6e26c6..2d62353de 100644 --- a/tests/security/with-api-prefix/roles.yaml +++ b/tests/security/with-api-prefix/roles.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test roles endpoints. prologues: diff --git a/tests/security/with-api-prefix/rolesmapping.yaml b/tests/security/with-api-prefix/rolesmapping.yaml index 857a1061c..8a7e1de17 100644 --- a/tests/security/with-api-prefix/rolesmapping.yaml +++ b/tests/security/with-api-prefix/rolesmapping.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test rolesmapping endpoint. prologues: diff --git a/tests/security/with-api-prefix/securityconfig.yaml b/tests/security/with-api-prefix/securityconfig.yaml index 6fb9e86ee..b676f70b7 100644 --- a/tests/security/with-api-prefix/securityconfig.yaml +++ b/tests/security/with-api-prefix/securityconfig.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test securityconfig endpoints. prologues: diff --git a/tests/security/with-api-prefix/ssl.yaml b/tests/security/with-api-prefix/ssl.yaml index eea66942f..fa63c4100 100644 --- a/tests/security/with-api-prefix/ssl.yaml +++ b/tests/security/with-api-prefix/ssl.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test ssl endpoints. prologues: diff --git a/tests/security/with-api-prefix/tenancy.yaml b/tests/security/with-api-prefix/tenancy.yaml index 573421e81..7997800db 100644 --- a/tests/security/with-api-prefix/tenancy.yaml +++ b/tests/security/with-api-prefix/tenancy.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test tenancy endpoint. prologues: diff --git a/tests/security/with-api-prefix/tenants.yaml b/tests/security/with-api-prefix/tenants.yaml index f883291ea..6ac9d3f13 100644 --- a/tests/security/with-api-prefix/tenants.yaml +++ b/tests/security/with-api-prefix/tenants.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test tenants endpoints. prologues: diff --git a/tests/security/with-api-prefix/validate.yaml b/tests/security/with-api-prefix/validate.yaml index 4a2134ad3..2dd4f3765 100644 --- a/tests/security/with-api-prefix/validate.yaml +++ b/tests/security/with-api-prefix/validate.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test validate endpoint. prologues: diff --git a/tests/security/without-api-prefix/authinfo.yaml b/tests/security/without-api-prefix/authinfo.yaml index 4b9ad67a7..3b06a9448 100644 --- a/tests/security/without-api-prefix/authinfo.yaml +++ b/tests/security/without-api-prefix/authinfo.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test authinfo endpoint. chapters: diff --git a/tests/security/without-api-prefix/dashboardsinfo.yaml b/tests/security/without-api-prefix/dashboardsinfo.yaml index 4fde724ad..5e095c204 100644 --- a/tests/security/without-api-prefix/dashboardsinfo.yaml +++ b/tests/security/without-api-prefix/dashboardsinfo.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test dashboardsinfo endpoint. chapters: diff --git a/tests/security/without-api-prefix/health.yaml b/tests/security/without-api-prefix/health.yaml index 8178981fa..ba3e387dd 100644 --- a/tests/security/without-api-prefix/health.yaml +++ b/tests/security/without-api-prefix/health.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test health endpoint. chapters: diff --git a/tests/security/without-api-prefix/sslinfo.yaml b/tests/security/without-api-prefix/sslinfo.yaml index ab5e51b0d..7c5b26bcd 100644 --- a/tests/security/without-api-prefix/sslinfo.yaml +++ b/tests/security/without-api-prefix/sslinfo.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test sslinfo endpoint. chapters: diff --git a/tests/security/without-api-prefix/tenantinfo.yaml b/tests/security/without-api-prefix/tenantinfo.yaml index a10350fb0..0a2d9a498 100644 --- a/tests/security/without-api-prefix/tenantinfo.yaml +++ b/tests/security/without-api-prefix/tenantinfo.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test tenantinfo endpoint. chapters: diff --git a/tests/security/without-api-prefix/upgrade.yaml b/tests/security/without-api-prefix/upgrade.yaml index 485ab217c..6fad5e80d 100644 --- a/tests/security/without-api-prefix/upgrade.yaml +++ b/tests/security/without-api-prefix/upgrade.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test upgrade eligibility endpoints. chapters: @@ -14,6 +14,6 @@ chapters: method: POST request_body: payload: - config: ["roles"] + config: [roles] response: status: 200 \ No newline at end of file diff --git a/tests/security/without-api-prefix/whoami.yaml b/tests/security/without-api-prefix/whoami.yaml index 70b81ce82..55085de6d 100644 --- a/tests/security/without-api-prefix/whoami.yaml +++ b/tests/security/without-api-prefix/whoami.yaml @@ -1,4 +1,4 @@ -$schema: ../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: Test whoami endpoints. chapters: