From c8254bbdddabdc5dfa1872bfc9740ea64fe7fe16 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Wed, 2 Oct 2024 17:18:47 +0200 Subject: [PATCH] linter happiness --- .../docker/docker_manager/docker_auth_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_auth_test.go b/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_auth_test.go index a537273faf..ae800a7bb0 100644 --- a/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_auth_test.go +++ b/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_auth_test.go @@ -6,7 +6,6 @@ import ( "os" "testing" - "github.com/docker/docker/api/types/registry" "github.com/stretchr/testify/assert" ) @@ -29,12 +28,10 @@ func WriteStaticConfig(t *testing.T, configContent string) string { } func TestGetAuthConfigForRepoPlain(t *testing.T) { - expectedAuth := registry.AuthConfig{ - Username: "user", - Password: "password", - } + expectedUser := "user" + expectedPassword := "password" - encodedAuth := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s:%s", expectedAuth.Username, expectedAuth.Password))) + encodedAuth := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s:%s", expectedUser, expectedPassword))) cfg := fmt.Sprintf(` {