Skip to content

Commit

Permalink
remove unused states in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVerrept committed Jan 15, 2024
1 parent c19f23d commit 75c3fb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/provider/vm_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data "cudo_vm" "test" {
res, err := cl.VirtualMachines.TerminateVM(terminateParams)
t.Log(res, err)

return fmt.Errorf("vm resource not destroyed %s, %s, %s", ins.Payload.VM.ID, ins.Payload.VM.LcmState, ins.Payload.VM.OneState)
return fmt.Errorf("vm resource not destroyed %s, %s", ins.Payload.VM.ID, ins.Payload.VM.ShortState)
}
return nil
},
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/vm_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resource "cudo_vm" "vm" {
res, err := cl.VirtualMachines.TerminateVM(terminateParams)
t.Logf("(%s) %#v: %v", ins.Payload.VM.ShortState, res, err)

return fmt.Errorf("vm resource not destroyed %s , %s, %s", ins.Payload.VM.ID, ins.Payload.VM.LcmState, ins.Payload.VM.OneState)
return fmt.Errorf("vm resource not destroyed %s , %s", ins.Payload.VM.ID, ins.Payload.VM.ShortState)
}
return nil
},
Expand Down Expand Up @@ -129,7 +129,7 @@ resource "cudo_vm" "vm-minimal" {
res, err := cl.VirtualMachines.TerminateVM(terminateParams)
t.Logf("(%s) %#v: %v", ins.Payload.VM.ShortState, res, err)

return fmt.Errorf("vm resource not destroyed %s, %s, %s", ins.Payload.VM.ID, ins.Payload.VM.LcmState, ins.Payload.VM.OneState)
return fmt.Errorf("vm resource not destroyed %s, %s", ins.Payload.VM.ID, ins.Payload.VM.ShortState)
}
return nil
},
Expand Down Expand Up @@ -202,7 +202,7 @@ resource "cudo_vm" "vm-oob-delete" {
res, err := cl.VirtualMachines.TerminateVM(terminateParams)
t.Logf("(%s) %#v: %v", ins.Payload.VM.ShortState, res, err)

return fmt.Errorf("vm resource not destroyed %s, %s, %s", ins.Payload.VM.ID, ins.Payload.VM.LcmState, ins.Payload.VM.OneState)
return fmt.Errorf("vm resource not destroyed %s, %s", ins.Payload.VM.ID, ins.Payload.VM.ShortState)
}
return nil
},
Expand Down

0 comments on commit 75c3fb1

Please sign in to comment.