mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
registry: remove TestSameAuthDataPostSave
This test was added in 0fc11699ab
as
a regression test for saving credentials by the CLI.
However, the CLI code is no longer in this repository, so it was
no longer testing anything.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
32eaf4690a
commit
0ba2d7c625
1 changed files with 0 additions and 14 deletions
|
@ -20,20 +20,6 @@ func buildAuthConfigs() map[string]types.AuthConfig {
|
||||||
return authConfigs
|
return authConfigs
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSameAuthDataPostSave(t *testing.T) {
|
|
||||||
authConfigs := buildAuthConfigs()
|
|
||||||
authConfig := authConfigs["testIndex"]
|
|
||||||
if authConfig.Username != "docker-user" {
|
|
||||||
t.Fail()
|
|
||||||
}
|
|
||||||
if authConfig.Password != "docker-pass" {
|
|
||||||
t.Fail()
|
|
||||||
}
|
|
||||||
if authConfig.Auth != "" {
|
|
||||||
t.Fail()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestResolveAuthConfigIndexServer(t *testing.T) {
|
func TestResolveAuthConfigIndexServer(t *testing.T) {
|
||||||
authConfigs := buildAuthConfigs()
|
authConfigs := buildAuthConfigs()
|
||||||
indexConfig := authConfigs[IndexServer]
|
indexConfig := authConfigs[IndexServer]
|
||||||
|
|
Loading…
Add table
Reference in a new issue