Skip to content

Commit

Permalink
Passing npm run test:spec -- --opensearch-distribution=amazon-managed…
Browse files Browse the repository at this point in the history
… against Amazon OpenSearch 2.13.

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Aug 14, 2024
1 parent ba4f0a5 commit f116d93
Show file tree
Hide file tree
Showing 40 changed files with 153 additions and 24 deletions.
9 changes: 3 additions & 6 deletions spec/schemas/security._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ components:
items:
type: string
ssl_protocol:
type: string
type: ['null',string]
description: Protocol for this ssl setup.
ssl_cipher:
type: string
type: ['null',string]
description: Cipher for this ssl setup.
ssl_openssl_available:
type: boolean
Expand All @@ -646,7 +646,7 @@ components:
type: boolean
description: Indicates whether hostname validation is supported.
ssl_provider_http:
type: string
type: ['null',string]
description: Returns http provider's name.
ssl_provider_transport_server:
type: string
Expand All @@ -657,15 +657,12 @@ components:
required:
- peer_certificates
- principal
- ssl_cipher
- ssl_openssl_available
- ssl_openssl_non_available_cause
- ssl_openssl_supports_hostname_validation
- ssl_openssl_supports_key_manager_factory
- ssl_openssl_version
- ssl_openssl_version_string
- ssl_protocol
- ssl_provider_http
- ssl_provider_transport_client
- ssl_provider_transport_server

Expand Down
2 changes: 1 addition & 1 deletion tests/default/cat/master.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test cat/master endpoints.
version: < 2.0
chapters:
- synopsis: Cat with a json response.
version: < 2.0
path: /_cat/master
method: GET
parameters:
Expand Down
8 changes: 4 additions & 4 deletions tests/default/cat/nodeattrs.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test cat/nodeattrs endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless
chapters:
- synopsis: Cat with a json response.
distributions:
excluded:
- amazon-managed
- amazon-serverless
path: /_cat/nodeattrs
method: GET
parameters:
Expand Down
5 changes: 5 additions & 0 deletions tests/default/ingest/pipeline/neural_search.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test the creation a neural search ingest pipeline.
distributions:
# requires an ML node to be provisioned, disabling with only_run_on_ml_node is not possible
excluded:
- amazon-managed
- amazon-serverless
prologues:
- path: /_cluster/settings
method: PUT
Expand Down
5 changes: 4 additions & 1 deletion tests/default/query/datasources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ $schema: ../../../json_schemas/test_story.schema.yaml

description: Test various operations of the OpenSearch Query Datasources API.
version: '>=2.7'

distributions:
excluded:
- amazon-managed
- amazon-serverless
prologues:
- path: /_plugins/_query/_datasources/{datasource_name}
method: DELETE
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/account.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test account endpoint.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get account details.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/actiongroups.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test actiongroups endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Create action group.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/allowlist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test allowlist endpoints.
version: '> 2.0'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only. These tests require explicit rest api admin privileges.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/audit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test audit endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get an audit config.
Expand Down
5 changes: 4 additions & 1 deletion tests/default/security/api/audit/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
$schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test audit/config endpoint.

distributions:
excluded:
- amazon-managed
- amazon-serverless
chapters:
- synopsis: Create an audit config.
path: /_plugins/_security/api/audit/config
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/authtoken.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test authtoken endpoint.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Create an auth token.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/cache.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test cache endpoint.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get cache.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test certificates endpoints.
version: '> 2.14'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only. These tests require explicit rest api admin privileges.
prologues:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/generateonbehalfoftoken.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test generateonbehalfoftoken endpoint.
version: '> 2.11'
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Create an On-Behalf-Of token.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/internalusers.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test internalusers endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get internal users bulk.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/internalusers/authtoken.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test internalusers/authtoken endpoint.
version: '> 2.16' # Fixed via https://github.com/opensearch-project/security/pull/4628
distributions:
excluded:
- amazon-managed
- amazon-serverless

prologues:
- path: /_plugins/_security/api/internalusers/{username}
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/migrate.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test migrate endpoint.
distributions:
excluded:
- amazon-managed
- amazon-serverless

# BAD_REQUEST. Can not migrate configuration because it was already migrated.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/nodesdn.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test nodesdn endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only. These tests require explicit rest api admin privileges.
# The setting `plugins. security. nodes_dn_dynamic_config_enabled` must be enabled.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/permissionsinfo.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test permissionsinfo endpoint.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get evaluated permissions for currently logged in user.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/roles.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test roles endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Create role.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/rolesmapping.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test rolesmapping endpoint.
distributions:
excluded:
- amazon-managed
- amazon-serverless

prologues:
- path: /_plugins/_security/api/roles/{role}
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/securityconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test securityconfig endpoints.
version: '> 2.9'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only (except GET). These tests require explicit rest api admin privileges.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/securityconfig/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test securityconfig/config endpoint.
version: '> 2.9'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only (except GET). These tests require explicit rest api admin privileges.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/ssl/certs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test ssl/certs endpoint.
version: '>= 2.0'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only. These tests require explicit rest api admin privileges.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/ssl/http/reloadcerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: Test ssl/http/reloadcerts endpoint.
version: '> 2.7'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only. These tests require explicit rest api admin privileges.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/ssl/transport/reloadcerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../../json_schemas/test_story.schema.yaml

description: Test ssl/transport/reloadcerts endpoint.
version: '> 2.7'
distributions:
excluded:
- amazon-managed
- amazon-serverless

# ADMIN-CERT only. These tests require explicit rest api admin privileges.
chapters:
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/tenancy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test tenancy/config endpoints.
version: '> 2.6'
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get tenancy config.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/tenants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test tenants endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Create tenant.
Expand Down
5 changes: 4 additions & 1 deletion tests/default/security/api/upgrade_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test _upgrade_check endpoint.
version: '> 2.13'

distributions:
excluded:
- amazon-managed
- amazon-serverless
chapters:
- synopsis: Check whether an upgrade can be performed.
path: /_plugins/_security/api/_upgrade_check
Expand Down
5 changes: 4 additions & 1 deletion tests/default/security/api/upgrade_perform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ $schema: ../../../../json_schemas/test_story.schema.yaml

description: Test _upgrade_perform endpoint.
version: '> 2.13'

distributions:
excluded:
- amazon-managed
- amazon-serverless
chapters:
- synopsis: Perform the upgrade.
path: /_plugins/_security/api/_upgrade_perform
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/user.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test user endpoints.
distributions:
excluded:
- amazon-managed
- amazon-serverless

chapters:
- synopsis: Get user bulk.
Expand Down
4 changes: 4 additions & 0 deletions tests/default/security/api/user/authtoken.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ $schema: ../../../../../json_schemas/test_story.schema.yaml

description: Test authtoken endpoints for user.
version: '> 2.16' # Fixed via https://github.com/opensearch-project/security/pull/4628
distributions:
excluded:
- amazon-managed
- amazon-serverless

prologues:
- path: /_plugins/_security/api/user/{username}
Expand Down
Loading

0 comments on commit f116d93

Please sign in to comment.