From 713ab45ca9c5ed2a0f9562c09be5e7765fc59b61 Mon Sep 17 00:00:00 2001 From: Marcin Kaciuba Date: Mon, 19 Feb 2024 15:23:59 +0100 Subject: [PATCH] add log of body --- castai/resource_node_template_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/castai/resource_node_template_test.go b/castai/resource_node_template_test.go index 66871127..bed4208f 100644 --- a/castai/resource_node_template_test.go +++ b/castai/resource_node_template_test.go @@ -4,12 +4,13 @@ import ( "bytes" "context" "fmt" - "github.com/samber/lo" "io" "net/http" "testing" "time" + "github.com/samber/lo" + "github.com/golang/mock/gomock" "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -592,7 +593,7 @@ func testAccCheckNodeTemplateDestroy(s *terraform.State) error { return nil } - return fmt.Errorf("node template %q still exists; %v", id, response) + return fmt.Errorf("node template %q still exists; %v", id, string(response.GetBody())) } return nil