зеркало из https://github.com/microsoft/docker.git
update tests for service create and update
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Родитель
88dea0e06e
Коммит
ca6b653551
|
@ -70,5 +70,6 @@ func (s *DockerSwarmSuite) TestServiceCreateWithSecret(c *check.C) {
|
|||
c.Assert(refs, checker.HasLen, 1)
|
||||
|
||||
c.Assert(refs[0].SecretName, checker.Equals, testName)
|
||||
c.Assert(refs[0].Target, checker.Equals, testTarget)
|
||||
c.Assert(refs[0].Target, checker.Not(checker.IsNil))
|
||||
c.Assert(refs[0].Target.Name, checker.Equals, testTarget)
|
||||
}
|
||||
|
|
|
@ -114,7 +114,8 @@ func (s *DockerSwarmSuite) TestServiceUpdateSecrets(c *check.C) {
|
|||
c.Assert(refs, checker.HasLen, 1)
|
||||
|
||||
c.Assert(refs[0].SecretName, checker.Equals, testName)
|
||||
c.Assert(refs[0].Target, checker.Equals, testTarget)
|
||||
c.Assert(refs[0].Target, checker.Not(checker.IsNil))
|
||||
c.Assert(refs[0].Target.Name, checker.Equals, testTarget)
|
||||
|
||||
// remove
|
||||
out, err = d.Cmd("service", "update", "test", "--secret-rm", testName)
|
||||
|
|
Загрузка…
Ссылка в новой задаче