From 17354ebb4c65acaebbf2d4ae848b154291c56b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20De=20la=20Torre=20Vico?= Date: Mon, 14 Oct 2024 12:55:06 +0200 Subject: [PATCH] test(codebuild): test new master related attributes --- .../aws/services/opensearch/opensearch_service_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/providers/aws/services/opensearch/opensearch_service_test.py b/tests/providers/aws/services/opensearch/opensearch_service_test.py index 1df689eb18..a1263d2988 100644 --- a/tests/providers/aws/services/opensearch/opensearch_service_test.py +++ b/tests/providers/aws/services/opensearch/opensearch_service_test.py @@ -67,6 +67,10 @@ def mock_make_api_call(self, operation_name, kwarg): "VPCOptions": { "VPCId": "test-vpc-id", }, + "ClusterConfig": { + "DedicatedMasterEnabled": True, + "DedicatedMasterCount": 1, + }, "CognitoOptions": {"Enabled": True}, "EncryptionAtRestOptions": {"Enabled": True}, "NodeToNodeEncryptionOptions": {"Enabled": True}, @@ -80,6 +84,7 @@ def mock_make_api_call(self, operation_name, kwarg): "ServiceSoftwareOptions": {"UpdateAvailable": True}, "DomainEndpointOptions": {"EnforceHTTPS": True}, "AdvancedSecurityOptions": { + "Enabled": True, "InternalUserDatabaseEnabled": True, "SAMLOptions": {"Enabled": True}, }, @@ -171,6 +176,8 @@ class Test_OpenSearchService_Service: assert opensearch.opensearch_domains[0].saml_enabled assert opensearch.opensearch_domains[0].update_available assert opensearch.opensearch_domains[0].version == "opensearch-version1" + assert opensearch.opensearch_domains[0].dedicated_master_enabled + assert opensearch.opensearch_domains[0].dedicated_master_count == 1 assert opensearch.opensearch_domains[0].tags == [ {"Key": "test", "Value": "test"}, ]