@@ -2273,7 +2273,6 @@ func TestAccOpenSearchDomain_AIMLOptions_createEnabled(t *testing.T) {
2273
2273
rName := testAccRandomDomainName ()
2274
2274
resourceName := "aws_opensearch_domain.test"
2275
2275
enabledState := "ENABLED"
2276
- disabledState := "DISABLED"
2277
2276
2278
2277
resource .ParallelTest (t , resource.TestCase {
2279
2278
PreCheck : func () { acctest .PreCheck (ctx , t ); testAccPreCheckIAMServiceLinkedRole (ctx , t ) },
@@ -2306,38 +2305,6 @@ func TestAccOpenSearchDomain_AIMLOptions_createEnabled(t *testing.T) {
2306
2305
"advanced_security_options" ,
2307
2306
},
2308
2307
},
2309
- {
2310
- Config : testAccDomainConfig_AIMLOptions (rName , disabledState , true ),
2311
- Check : resource .ComposeTestCheckFunc (
2312
- testAccCheckDomainExists (ctx , resourceName , & domain ),
2313
- resource .TestCheckResourceAttr (resourceName , "aiml_options.#" , "1" ),
2314
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.natural_language_query_generation_options.#" , "1" ),
2315
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.natural_language_query_generation_options.0.desired_state" , disabledState ),
2316
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.s3_vectors_engine.#" , "1" ),
2317
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.s3_vectors_engine.0.enabled" , acctest .CtTrue ),
2318
- ),
2319
- ConfigPlanChecks : resource.ConfigPlanChecks {
2320
- PreApply : []plancheck.PlanCheck {
2321
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionUpdate ),
2322
- },
2323
- },
2324
- },
2325
- {
2326
- Config : testAccDomainConfig_AIMLOptions (rName , enabledState , false ),
2327
- Check : resource .ComposeTestCheckFunc (
2328
- testAccCheckDomainExists (ctx , resourceName , & domain ),
2329
- resource .TestCheckResourceAttr (resourceName , "aiml_options.#" , "1" ),
2330
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.natural_language_query_generation_options.#" , "1" ),
2331
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.natural_language_query_generation_options.0.desired_state" , enabledState ),
2332
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.s3_vectors_engine.#" , "1" ),
2333
- resource .TestCheckResourceAttr (resourceName , "aiml_options.0.s3_vectors_engine.0.enabled" , acctest .CtFalse ),
2334
- ),
2335
- ConfigPlanChecks : resource.ConfigPlanChecks {
2336
- PreApply : []plancheck.PlanCheck {
2337
- plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionUpdate ),
2338
- },
2339
- },
2340
- },
2341
2308
},
2342
2309
})
2343
2310
}
0 commit comments