Skip to content

Commit bbb9d4d

Browse files
committed
Fix 'TestAccOpenSearchDomain_AIMLOptions_*'.
1 parent 2261fdf commit bbb9d4d

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

internal/service/opensearch/domain_test.go

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,9 @@ func TestAccOpenSearchDomain_AIMLOptions_createEnabled(t *testing.T) {
23022302
ImportState: true,
23032303
ImportStateId: rName,
23042304
ImportStateVerify: true,
2305+
ImportStateVerifyIgnore: []string{
2306+
"advanced_security_options",
2307+
},
23052308
},
23062309
{
23072310
Config: testAccDomainConfig_AIMLOptions(rName, disabledState, true),
@@ -2378,6 +2381,9 @@ func TestAccOpenSearchDomain_AIMLOptions_createDisabled(t *testing.T) {
23782381
ImportState: true,
23792382
ImportStateId: rName,
23802383
ImportStateVerify: true,
2384+
ImportStateVerifyIgnore: []string{
2385+
"advanced_security_options",
2386+
},
23812387
},
23822388
{
23832389
Config: testAccDomainConfig_AIMLOptions(rName, enabledState, false),
@@ -4363,9 +4369,36 @@ func testAccDomainConfig_AIMLOptions(rName, desiredState string, S3VecotrsEnable
43634369
resource "aws_opensearch_domain" "test" {
43644370
domain_name = %[1]q
43654371
4372+
cluster_config {
4373+
instance_type = "or1.medium.search"
4374+
instance_count = 1
4375+
}
4376+
4377+
advanced_security_options {
4378+
enabled = true
4379+
internal_user_database_enabled = true
4380+
master_user_options {
4381+
master_user_name = "testmasteruser"
4382+
master_user_password = "Barbarbarbar1!"
4383+
}
4384+
}
4385+
4386+
domain_endpoint_options {
4387+
enforce_https = true
4388+
tls_security_policy = "Policy-Min-TLS-1-2-2019-07"
4389+
}
4390+
4391+
node_to_node_encryption {
4392+
enabled = true
4393+
}
4394+
43664395
ebs_options {
43674396
ebs_enabled = true
4368-
volume_size = 10
4397+
volume_size = 20
4398+
}
4399+
4400+
encrypt_at_rest {
4401+
enabled = true
43694402
}
43704403
43714404
aiml_options {

0 commit comments

Comments
 (0)