moby/testutil/daemon
Brian Goff 97433635a6
De-flake TestSwarmClusterRotateUnlockKey... again... maybe?
This hopefully makes the test less flakey (or removes any flake that
would be caused by the test itself).

1. Adds tail of cluster daemon logs when there is a test failure so we
   can more easily see what may be happening
2. Scans the daemon logs to check if the key is rotated before
   restarting the daemon. This is a little hacky but a little better
   than assuming it is done after a hard-coded 3 seconds.
3. Cleans up the `node ls` check such that it uses a poll function

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit fbdc02534a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-24 10:25:12 +01:00
..
config.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
container.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
daemon.go De-flake TestSwarmClusterRotateUnlockKey... again... maybe? 2024-01-24 10:25:12 +01:00
daemon_freebsd.go Port testutil/daemon to FreeBSD 2021-10-16 09:51:55 +03:00
daemon_linux.go testutil: use filepath.WalkDir instead of filepath.Walk 2022-10-09 17:26:31 +02:00
daemon_unix.go Port testutil/daemon to FreeBSD 2021-10-16 09:51:55 +03:00
daemon_windows.go Do not call mount.RecursiveUnmount() on Windows 2020-10-29 23:00:16 +01:00
doc.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
node.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
ops.go daemon: support other containerd runtimes (MVP) 2022-07-27 14:22:49 -04:00
plugin.go testutil: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
secret.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
service.go testutil: inline filters in tests 2023-04-25 15:16:39 +02:00
swarm.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00