From 75c3fb11907168374da1147a2f9833a2d7761503 Mon Sep 17 00:00:00 2001 From: ArthurVerrept Date: Mon, 15 Jan 2024 14:29:18 +0000 Subject: [PATCH] remove unused states in tests --- internal/provider/vm_data_source_test.go | 2 +- internal/provider/vm_resource_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/provider/vm_data_source_test.go b/internal/provider/vm_data_source_test.go index a4a45e6..667da2e 100644 --- a/internal/provider/vm_data_source_test.go +++ b/internal/provider/vm_data_source_test.go @@ -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 }, diff --git a/internal/provider/vm_resource_test.go b/internal/provider/vm_resource_test.go index cae7d3c..209df6f 100644 --- a/internal/provider/vm_resource_test.go +++ b/internal/provider/vm_resource_test.go @@ -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 }, @@ -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 }, @@ -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 },