mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #40473 from thaJeztah/fix_TestLoginFailsWithBadCredentials
TestLoginFailsWithBadCredentials: prepare for Go 1.14 changes
This commit is contained in:
commit
c6400be468
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ func TestLoginFailsWithBadCredentials(t *testing.T) {
|
||||||
Password: "no-password",
|
Password: "no-password",
|
||||||
}
|
}
|
||||||
_, err := client.RegistryLogin(context.Background(), config)
|
_, err := client.RegistryLogin(context.Background(), config)
|
||||||
expected := "Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password"
|
assert.Assert(t, err != nil)
|
||||||
assert.Check(t, is.Error(err, expected))
|
assert.Check(t, is.ErrorContains(err, "unauthorized: incorrect username or password"))
|
||||||
|
assert.Check(t, is.ErrorContains(err, "https://registry-1.docker.io/v2/"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue