From e44540043da03081378361df474c80d48aa6953c Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Tue, 23 Nov 2021 15:47:19 -0800 Subject: [PATCH] Attempt to fix a unit test that always failed on my laptop Try to make the GCP plugin config less sensitive to the setup of the computer on which it runs. --- internal/kubeclient/kubeclient_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/kubeclient/kubeclient_test.go b/internal/kubeclient/kubeclient_test.go index 2821760f..a90e3bae 100644 --- a/internal/kubeclient/kubeclient_test.go +++ b/internal/kubeclient/kubeclient_test.go @@ -979,6 +979,9 @@ func TestUnwrap(t *testing.T) { gcpClient := makeClient(t, restConfig, func(config *rest.Config) { config.AuthProvider = &clientcmdapi.AuthProviderConfig{ Name: "gcp", + Config: map[string]string{ + "cmd-path": `echo {"access_token":"fake","token_expiry":"2200-01-02T15:04:05.999999999Z07:00"}`, + }, } })