From d1bbcb462653f58492af95a716b7e4c5d3a0d386 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 21 Jul 2025 12:05:48 -0400 Subject: [PATCH] openshiftCluster.dockerLogin: create path with parents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Miloslav Trmač Signed-off-by: Lokesh Mandvekar --- integration/openshift_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/openshift_test.go b/integration/openshift_test.go index 00b735e4..4de09ee7 100644 --- a/integration/openshift_test.go +++ b/integration/openshift_test.go @@ -223,7 +223,7 @@ func (cluster *openshiftCluster) ocLoginToProject(t *testing.T) { // We do not run (docker login) directly, because that requires a running daemon and a docker package. func (cluster *openshiftCluster) dockerLogin(t *testing.T) { cluster.dockerDir = filepath.Join(homedir.Get(), ".docker") - err := os.Mkdir(cluster.dockerDir, 0700) + err := os.MkdirAll(cluster.dockerDir, 0700) require.NoError(t, err) out := combinedOutputOfCommand(t, "oc", "config", "view", "-o", "json", "-o", "jsonpath={.users[*].user.token}")