forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renames everything to match the API path
Signed-off-by: Darshit Chanpura <[email protected]>
- Loading branch information
1 parent
7e6bf0c
commit 705e6cf
Showing
28 changed files
with
221 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _upgrade_check endpoint. | ||
version: '> 2.13' | ||
|
||
chapters: | ||
- synopsis: Check whether an upgrade can be performed. | ||
path: /_plugins/_security/api/_upgrade_check | ||
method: GET | ||
response: | ||
status: 200 |
10 changes: 3 additions & 7 deletions
10
tests/default/security/api/upgrade.yaml → ...efault/security/api/_upgrade_perform.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/default/security/api/action_groups.yaml → tests/default/security/api/actiongroups.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test audit/config endpoint. | ||
|
||
chapters: | ||
- synopsis: Create an audit config. | ||
path: /_plugins/_security/api/audit/config | ||
method: PUT | ||
request: | ||
payload: | ||
enabled: true | ||
audit: | ||
ignore_users: [] | ||
ignore_requests: [] | ||
disabled_rest_categories: | ||
- AUTHENTICATED | ||
- GRANTED_PRIVILEGES | ||
disabled_transport_categories: | ||
- AUTHENTICATED | ||
- GRANTED_PRIVILEGES | ||
log_request_body: false | ||
resolve_indices: false | ||
resolve_bulk_requests: false | ||
exclude_sensitive_headers: true | ||
enable_transport: false | ||
enable_rest: true | ||
compliance: | ||
enabled: true | ||
write_log_diffs: false | ||
read_watched_fields: {} | ||
read_ignore_users: [] | ||
write_watched_indices: [] | ||
write_ignore_users: [] | ||
read_metadata_only: true | ||
write_metadata_only: true | ||
external_config: false | ||
internal_config: true | ||
response: | ||
status: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test authtoken endpoint. | ||
|
||
chapters: | ||
- synopsis: Create an auth token. | ||
path: /_plugins/_security/api/authtoken | ||
method: POST | ||
response: | ||
status: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
tests/default/security/api/tokens.yaml → ...security/api/generateonbehalfoftoken.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../default/security/api/internal_users.yaml → ...s/default/security/api/internalusers.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test securityconfig/config endpoint. | ||
version: '>2.9' | ||
|
||
# ADMIN-CERT only (except GET). These tests require explicit rest api admin privileges. | ||
chapters: | ||
- synopsis: Update a security config. | ||
path: /_plugins/_security/api/securityconfig/config | ||
method: PUT | ||
request: | ||
payload: | ||
dynamic: | ||
filtered_alias_mode: warn | ||
disable_rest_auth: false | ||
disable_intertransport_auth: false | ||
respect_request_indices_options: false | ||
opensearch-dashboards: | ||
multitenancy_enabled: true | ||
server_username: kibanaserver | ||
index: .opensearch-dashboards | ||
http: | ||
anonymous_auth_enabled: false | ||
authc: | ||
basic_internal_auth_domain: | ||
http_enabled: true | ||
transport_enabled: true | ||
order: 0 | ||
http_authenticator: | ||
challenge: true | ||
type: basic | ||
config: {} | ||
authentication_backend: | ||
type: intern | ||
config: {} | ||
description: Authenticate via HTTP Basic against internal users database | ||
auth_failure_listeners: {} | ||
do_not_fail_on_forbidden: false | ||
multi_rolespan_enabled: true | ||
hosts_resolver_mode: ip-only | ||
do_not_fail_on_forbidden_empty: false | ||
response: | ||
status: 403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test ssl/certs endpoint. | ||
version: '>= 2.0' | ||
|
||
# ADMIN-CERT only. These tests require explicit rest api admin privileges. | ||
chapters: | ||
- synopsis: Get ssl certificates. | ||
path: /_plugins/_security/api/ssl/certs | ||
method: GET | ||
response: | ||
status: 403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$schema: ../../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test ssl/http/reloadcerts endpoint. | ||
version: '> 2.7' | ||
|
||
# ADMIN-CERT only. These tests require explicit rest api admin privileges. | ||
chapters: | ||
- synopsis: Reload http certs. | ||
path: /_plugins/_security/api/ssl/http/reloadcerts | ||
method: PUT | ||
response: | ||
status: 403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$schema: ../../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test ssl/transport/reloadcerts endpoint. | ||
version: '> 2.7' | ||
|
||
# ADMIN-CERT only. These tests require explicit rest api admin privileges. | ||
chapters: | ||
- synopsis: Reload transport certs. | ||
path: /_plugins/_security/api/ssl/transport/reloadcerts | ||
method: PUT | ||
response: | ||
status: 403 |
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
.../default/security/api/tenancy_config.yaml → .../default/security/api/tenancy/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.