add one more test

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-06 11:35:27 -05:00
parent 747cc152ca
commit 3b7dafb9ee
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3

View file

@ -43,6 +43,14 @@ func TestGetAuthConfig(t *testing.T) {
configdir: "testdata/empty",
config: types.AuthConfig{},
},
{
name: "empty config with docker.io",
registry: "docker.io",
configdir: "testdata/empty",
config: types.AuthConfig{
ServerAddress: DefaultDockerRegistry,
},
},
{
name: "empty config with registry",
registry: "r.j3ss.co",
@ -108,11 +116,6 @@ func TestGetAuthConfig(t *testing.T) {
Password: "thing\n",
},
},
{
name: "no authentication",
configdir: "testdata/empty",
config: types.AuthConfig{},
},
}
for _, testcase := range configTestcases {