From 7584ae509faf52ba0894d101e5f26d21dddaf4be Mon Sep 17 00:00:00 2001 From: matttrach Date: Thu, 1 Aug 2024 14:23:41 -0500 Subject: [PATCH] fix: custom user token changes replace resource Signed-off-by: matttrach --- GNUmakefile | 6 +++--- rancher2/schema_custom_user_token.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 39e256c0..a479f088 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -23,9 +23,9 @@ package-rancher: test: fmtcheck @echo "==> Running testing..." - go test $(TEST) || exit 1 + go test -v $(TEST) || exit 1 echo $(TEST) | \ - xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 + xargs -t -n4 go test -v $(TESTARGS) -timeout=30s -parallel=4 testacc: @sh -c "'$(CURDIR)/scripts/gotestacc.sh'" @@ -69,6 +69,6 @@ test-compile: echo " make test-compile TEST=./$(PKG_NAME)"; \ exit 1; \ fi - go test -c $(TEST) $(TESTARGS) + go test -v -c $(TEST) $(TESTARGS) .PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile bin vendor diff --git a/rancher2/schema_custom_user_token.go b/rancher2/schema_custom_user_token.go index 7f8d6de5..4d1d3ea6 100644 --- a/rancher2/schema_custom_user_token.go +++ b/rancher2/schema_custom_user_token.go @@ -12,6 +12,7 @@ func customUserTokenFields() map[string]*schema.Schema { Type: schema.TypeString, Required: true, Sensitive: true, + ForceNew: true, Description: "The user password", }, "username": {