Skip to content

Commit

Permalink
linter happiness
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet committed Oct 2, 2024
1 parent 7e2b88c commit c8254bb
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"testing"

"github.com/docker/docker/api/types/registry"
"github.com/stretchr/testify/assert"
)

Expand All @@ -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(`
{
Expand Down

0 comments on commit c8254bb

Please sign in to comment.