[API-spec] Add a custom configuration for admin-only APIs and add tests for those #4633
Labels
good first issue
These are recommended starting points for newcomers looking to make their first contributions.
triaged
Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Description
At present the test suite added via opensearch-project/opensearch-api-specification#439 test for common scenario, which is 403 when calling admin-only API.
This issue requests creation of a separate docker config to test admin-only APIs as TLS and rest-admin.
Expand to see custom roles_mapping.yml
Expand to see custom opensearchyml
Expand to see custom docker-compose.yml
These are sample configs that would enable normal admin to be a rest-admin and allow for testing.
The main drawback to this is maintaining a list of custom certificates in a repo outside security plugin.
Additional Items
Add schemas for Forbidden (400), MethodNotImplemented (501) and BadRequest (400) responses. At the time of writing this, the support was not yet added for these statuses.
Expand to see the sample schemas :
The text was updated successfully, but these errors were encountered: