Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fhofherr committed Nov 3, 2021
1 parent 4adfcfa commit ec487e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/e2etests/datacenter/data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ func TestAccHcloudDataSourceDatacentersTest(t *testing.T) {
resource.TestCheckResourceAttr(datacentersD.TFID(), "descriptions.0", "Nuremberg 1 DC 3"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "descriptions.1", "Helsinki 1 DC 2"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "descriptions.2", "Falkenstein 1 DC14"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "datacenters.#", "3"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "datacenters.#", "4"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "datacenters.0.name", "nbg1-dc3"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "datacenters.1.name", "hel1-dc2"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "datacenters.2.name", "fsn1-dc14"),
resource.TestCheckResourceAttr(datacentersD.TFID(), "datacenters.3.name", "ash-dc1"),
),
},
},
Expand Down
6 changes: 5 additions & 1 deletion internal/e2etests/location/data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,20 @@ func TestAccHcloudDataSourceLocationsTest(t *testing.T) {
resource.TestCheckResourceAttr(locationsDS.TFID(), "location_ids.0", "1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "location_ids.1", "2"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "location_ids.2", "3"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "location_ids.3", "4"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "names.0", "fsn1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "names.1", "nbg1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "names.2", "hel1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "names.3", "ash"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "descriptions.0", "Falkenstein DC Park 1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "descriptions.1", "Nuremberg DC Park 1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "descriptions.2", "Helsinki DC Park 1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "locations.#", "3"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "descriptions.3", "Ashburn, VA"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "locations.#", "4"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "locations.0.name", "fsn1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "locations.1.name", "nbg1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "locations.2.name", "hel1"),
resource.TestCheckResourceAttr(locationsDS.TFID(), "locations.3.name", "ash"),
),
},
},
Expand Down

0 comments on commit ec487e9

Please sign in to comment.