From c4205c52bbfc63ab76a08a41ac413c53477c9d76 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Fri, 9 Aug 2024 18:38:58 -0400 Subject: [PATCH] Fixes 2.0 test failures Signed-off-by: Darshit Chanpura --- spec/namespaces/security.yaml | 4 ++-- tests/default/security/api/ssl_certs.yaml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/namespaces/security.yaml b/spec/namespaces/security.yaml index a4c74485c..1a8e3c604 100644 --- a/spec/namespaces/security.yaml +++ b/spec/namespaces/security.yaml @@ -883,7 +883,7 @@ paths: put: operationId: security.reload_http_certificates.0 x-operation-group: security.reload_http_certificates - x-version-added: '2.11' + x-version-added: '2.8' description: Reload HTTP layer communication certificates. externalDocs: url: https://opensearch.org/docs/latest/security/access-control/api/#reload-http-certificates @@ -898,7 +898,7 @@ paths: put: operationId: security.reload_transport_certificates.0 x-operation-group: security.reload_transport_certificates - x-version-added: '2.11' + x-version-added: '2.8' description: Reload Transport layer communication certificates. externalDocs: url: https://opensearch.org/docs/latest/security/access-control/api/#reload-transport-certificates diff --git a/tests/default/security/api/ssl_certs.yaml b/tests/default/security/api/ssl_certs.yaml index e32f25203..738537da1 100644 --- a/tests/default/security/api/ssl_certs.yaml +++ b/tests/default/security/api/ssl_certs.yaml @@ -1,21 +1,23 @@ $schema: ../../../../json_schemas/test_story.schema.yaml description: Test ssl endpoints. -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 + version: '>=2.0' method: GET response: status: 403 - synopsis: Reload http certs. path: /_plugins/_security/api/ssl/http/reloadcerts + version: '>2.7' method: PUT response: status: 403 - synopsis: Reload transport certs. path: /_plugins/_security/api/ssl/transport/reloadcerts + version: '>2.7' method: PUT response: status: 403