Skip to content

Commit

Permalink
fix: TestAccCloudProjectVrackDataSource_basic: Attach a vRack before …
Browse files Browse the repository at this point in the history
…test and detach it afterwards
  • Loading branch information
Arthur Amstutz committed Mar 6, 2024
1 parent c1c8d23 commit d315e5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ovh/data_cloud_project_vrack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ func TestAccCloudProjectVrackDataSource_basic(t *testing.T) {
}

var testAccCloudProjectVrackDatasourceConfig = fmt.Sprintf(`
resource "ovh_vrack_cloudproject" "attach" {
service_name = "%s"
project_id = "%s"
}
data "ovh_cloud_project_vrack" "vrack" {
service_name = "%s"
depends_on = [ovh_vrack_cloudproject.attach]
}
`, os.Getenv("OVH_CLOUD_PROJECT_SERVICE_TEST"))
`, os.Getenv("OVH_VRACK_SERVICE_TEST"), os.Getenv("OVH_CLOUD_PROJECT_SERVICE_TEST"), os.Getenv("OVH_CLOUD_PROJECT_SERVICE_TEST"))

0 comments on commit d315e5d

Please sign in to comment.