Skip to content

Commit

Permalink
Merge pull request #30652 from hashicorp/b-opensearch-acctests
Browse files Browse the repository at this point in the history
Fixes OpenSearch and Elasticsearch acceptance tests
  • Loading branch information
gdavison authored Apr 12, 2023
2 parents b4ef753 + 817f3de commit 1b7c93a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions internal/service/elasticsearch/domain_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ POLICY
}
cluster_config {
instance_type = "t3.small.elasticsearch"
instance_count = 2
dedicated_master_enabled = false
Expand Down Expand Up @@ -276,7 +275,6 @@ POLICY
}
cluster_config {
instance_type = "t2.small.elasticsearch"
instance_count = 2
dedicated_master_enabled = false
Expand Down
2 changes: 0 additions & 2 deletions internal/service/opensearch/domain_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ POLICY
}
cluster_config {
instance_type = "t3.small.search"
instance_count = 2
dedicated_master_enabled = false
Expand Down Expand Up @@ -276,7 +275,6 @@ POLICY
}
cluster_config {
instance_type = "t2.small.search"
instance_count = 2
dedicated_master_enabled = false
Expand Down
2 changes: 1 addition & 1 deletion internal/service/opensearch/domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func TestAccOpenSearchDomain_duplicate(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckDomainExists(ctx, resourceName, &domain),
resource.TestCheckResourceAttr(resourceName, "engine_version", "OpenSearch_1.1")),
ExpectError: regexp.MustCompile(`domain .+ already exists`),
ExpectError: regexp.MustCompile(`OpenSearch Domain ".+" already exists`),
},
},
})
Expand Down

0 comments on commit 1b7c93a

Please sign in to comment.