mirror of
https://github.com/genuinetools/reg.git
synced 2024-05-20 03:58:32 -04:00
add one more test
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
747cc152ca
commit
3b7dafb9ee
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue