Skip to content

Commit d190259

Browse files
committed
power state resource test
1 parent 8e42a75 commit d190259

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

internal/provider/tests/acceptance/hypercore_vm_power_state_resource_acc_test.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ func TestAccHypercorePowerStateResource(t *testing.T) {
1919
Config: testAccHypercorePowerStateResourceConfig(),
2020
Check: resource.ComposeAggregateTestCheckFunc(
2121
resource.TestCheckResourceAttr("hypercore_vm_power_state.power_state_test", "state", "RUNNING"),
22-
resource.TestCheckResourceAttr("hypercore_vm_power_state.power_state_test_cleanup", "state", "SHUTOFF"),
2322
),
2423
},
2524
},
@@ -28,15 +27,6 @@ func TestAccHypercorePowerStateResource(t *testing.T) {
2827

2928
func testAccHypercorePowerStateResourceConfig() string {
3029
return fmt.Sprintf(`
31-
terraform {
32-
required_providers {
33-
null = {
34-
source = "hashicorp/null"
35-
version = ">= 3.0.0"
36-
}
37-
}
38-
}
39-
4030
data "hypercore_vm" "integrationvm" {
4131
name = %[1]q
4232
}
@@ -45,23 +35,5 @@ resource "hypercore_vm_power_state" "power_state_test" {
4535
vm_uuid = data.hypercore_vm.integrationvm.vms.0.uuid
4636
state = "RUNNING"
4737
}
48-
49-
resource "null_resource" "wait_before" {
50-
provisioner "local-exec" {
51-
command = "sleep 15"
52-
}
53-
}
54-
55-
resource "hypercore_vm_power_state" "power_state_test_cleanup" {
56-
vm_uuid = data.hypercore_vm.integrationvm.vms.0.uuid
57-
state = "SHUTOFF"
58-
}
59-
60-
resource "null_resource" "wait_after" {
61-
provisioner "local-exec" {
62-
command = "sleep 15"
63-
}
64-
}
65-
6638
`, source_vm_name)
6739
}

0 commit comments

Comments
 (0)