Signed-off-by: cyli <cyli@twistedmatrix.com>
| ... | ... |
@@ -977,6 +977,7 @@ func (s *DockerSwarmSuite) TestSwarmRotateUnlockKey(c *check.C) {
|
| 977 | 977 |
// Strip \n |
| 978 | 978 |
newUnlockKey := outs[:len(outs)-1] |
| 979 | 979 |
c.Assert(newUnlockKey, checker.Not(checker.Equals), "") |
| 980 |
+ c.Assert(newUnlockKey, checker.Not(checker.Equals), unlockKey) |
|
| 980 | 981 |
|
| 981 | 982 |
c.Assert(d.Restart(), checker.IsNil) |
| 982 | 983 |
|
| ... | ... |
@@ -1026,5 +1027,7 @@ func (s *DockerSwarmSuite) TestSwarmRotateUnlockKey(c *check.C) {
|
| 1026 | 1026 |
outs, err = d.Cmd("node", "ls")
|
| 1027 | 1027 |
c.Assert(err, checker.IsNil) |
| 1028 | 1028 |
c.Assert(outs, checker.Not(checker.Contains), "Swarm is encrypted and needs to be unlocked") |
| 1029 |
+ |
|
| 1030 |
+ unlockKey = newUnlockKey |
|
| 1029 | 1031 |
} |
| 1030 | 1032 |
} |