Commit aa99999
committed
integration/swarm: Preserve rotated unlock key
Fixes flaky SwarmTest.test_update_node erroring out with "Swarm is encrypted and
needs to be unlocked before it can be used. Please use "docker swarm unlock" to
unlock it."
`test_rotate_manager_unlock_key` enables autolock and then rotates the
manager unlock key, but teardown still holds the original key.
If the swarm needs to be unlocked during cleanup, the stale key cannot unlock it
and the daemon can remain in locked swarm state for the next test.
Store the rotated unlock key so teardown can unlock and leave the swarm cleanly.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>1 parent 059d371 commit aa99999
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
0 commit comments