Skip to content

Commit

Permalink
fix option group data source test (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewab authored Feb 29, 2024
1 parent b8c73b8 commit 2fc7ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/service/ipam/api_option_group_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAccOptionGroupDataSource_Filters(t *testing.T) {
CheckDestroy: testAccCheckOptionGroupDestroy(context.Background(), &v),
Steps: []resource.TestStep{
{
Config: testAccOptionGroupDataSourceConfigFilters("test_option_group", "ip4"),
Config: testAccOptionGroupDataSourceConfigFilters(acctest.RandomNameWithPrefix("option-group"), "ip4"),
Check: resource.ComposeTestCheckFunc(
append([]resource.TestCheckFunc{
testAccCheckOptionGroupExists(context.Background(), resourceName, &v),
Expand All @@ -43,7 +43,7 @@ func TestAccOptionGroupDataSource_TagFilters(t *testing.T) {
CheckDestroy: testAccCheckOptionGroupDestroy(context.Background(), &v),
Steps: []resource.TestStep{
{
Config: testAccOptionGroupDataSourceConfigTagFilters("test_option_group_tag", "ip6", acctest.RandomName()),
Config: testAccOptionGroupDataSourceConfigTagFilters(acctest.RandomNameWithPrefix("option-group"), "ip6", acctest.RandomName()),
Check: resource.ComposeTestCheckFunc(
append([]resource.TestCheckFunc{
testAccCheckOptionGroupExists(context.Background(), resourceName, &v),
Expand Down
1 change: 0 additions & 1 deletion internal/service/ipam/api_subnet_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ func testAccCheckSubnetResourceAttrPair(resourceName, dataSourceName string) []r
resource.TestCheckResourceAttrPair(resourceName, "space", dataSourceName, "results.0.space"),
resource.TestCheckResourceAttrPair(resourceName, "tags", dataSourceName, "results.0.tags"),
resource.TestCheckResourceAttrPair(resourceName, "threshold", dataSourceName, "results.0.threshold"),
resource.TestCheckResourceAttrPair(resourceName, "updated_at", dataSourceName, "results.0.updated_at"),
resource.TestCheckResourceAttrPair(resourceName, "usage", dataSourceName, "results.0.usage"),
resource.TestCheckResourceAttrPair(resourceName, "utilization", dataSourceName, "results.0.utilization"),
resource.TestCheckResourceAttrPair(resourceName, "utilization_v6", dataSourceName, "results.0.utilization_v6"),
Expand Down

0 comments on commit 2fc7ec8

Please sign in to comment.