We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 435384f + f35fb0f commit a5c7197Copy full SHA for a5c7197
cli/command/registry_test.go
@@ -3,6 +3,7 @@ package command_test
3
import (
4
"bytes"
5
"path"
6
+ "path/filepath"
7
"testing"
8
9
"github.com/docker/cli/cli/command"
@@ -58,7 +59,9 @@ func TestGetDefaultAuthConfig(t *testing.T) {
58
59
expectedAuthConfig: testAuthConfigs[1],
60
},
61
}
- cfg := configfile.New("filename")
62
+
63
+ tmpDir := t.TempDir()
64
+ cfg := configfile.New(filepath.Join(tmpDir, "cli-config.json"))
65
for _, authConfig := range testAuthConfigs {
66
assert.Check(t, cfg.GetCredentialsStore(authConfig.ServerAddress).Store(configtypes.AuthConfig{
67
Username: authConfig.Username,
0 commit comments