pkg/auth_test: Fixup tests to assume DOCKER_CONFIG is a directory
Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
parent
0356183170
commit
783a6c1551
|
|
@ -14,7 +14,7 @@ var _ = Describe("Config", func() {
|
|||
It("validate GetDefaultAuthFile", func() {
|
||||
// Given
|
||||
oldDockerConf, envDockerSet := os.LookupEnv("DOCKER_CONFIG")
|
||||
os.Setenv("DOCKER_CONFIG", "/tmp/docker.file")
|
||||
os.Setenv("DOCKER_CONFIG", "/tmp")
|
||||
oldConf, envSet := os.LookupEnv("REGISTRY_AUTH_FILE")
|
||||
os.Setenv("REGISTRY_AUTH_FILE", "/tmp/registry.file")
|
||||
// When // When
|
||||
|
|
@ -26,7 +26,7 @@ var _ = Describe("Config", func() {
|
|||
// Fall back to DOCKER_CONFIG
|
||||
authFile = GetDefaultAuthFile()
|
||||
// Then
|
||||
gomega.Expect(authFile).To(gomega.BeEquivalentTo("/tmp/docker.file"))
|
||||
gomega.Expect(authFile).To(gomega.BeEquivalentTo("/tmp/config.json"))
|
||||
os.Unsetenv("DOCKER_CONFIG")
|
||||
|
||||
// Fall back to DOCKER_CONFIG
|
||||
|
|
|
|||
Loading…
Reference in New Issue