Skip to content

Commit

Permalink
Remove tests dependent on response array position
Browse files Browse the repository at this point in the history
  • Loading branch information
momer committed Jul 15, 2024
1 parent a018d9c commit 83f105c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion internal/plan/data_source_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ func (s *PlanTestSuite) TestPlan_ListDataSource() {
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
// Keys in map
resource.TestCheckResourceAttr("data.bonsai_plans.list", "plans.1.%", "8"),
resource.TestCheckResourceAttr("data.bonsai_plans.list", "plans.1.slug", "standard-micro-aws-us-east-1"),
// Confirm at least one attr
resource.TestCheckResourceAttr("data.bonsai_plans.list", "plans.1.billing_interval_months", "1"),
),
},
},
Expand Down
1 change: 0 additions & 1 deletion internal/release/data_source_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func (s *ReleaseTestSuite) TestRelease_ListDataSource() {
`,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("data.bonsai_releases.list", "releases.0.%", "5"),
resource.TestCheckResourceAttr("data.bonsai_releases.list", "releases.0.slug", "elasticsearch-2.4.0"),
),
},
},
Expand Down
1 change: 0 additions & 1 deletion internal/space/data_source_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func (s *SpaceTestSuite) TestSpace_ListDataSource() {
`,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("data.bonsai_spaces.list", "spaces.0.%", "3"),
resource.TestCheckResourceAttr("data.bonsai_spaces.list", "spaces.0.path", "omc/bonsai/eu-west-1/common"),
),
},
},
Expand Down

0 comments on commit 83f105c

Please sign in to comment.