moby/testutil/daemon
Brian Goff 2cf1c762f8
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:06:10 +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 api/types: move ContainerListOptions to api/types/container 2023-10-12 11:29:24 +02:00
daemon.go De-flake TestSwarmClusterRotateUnlockKey... again... maybe? 2024-01-24 10:06:10 +01:00
daemon_freebsd.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
daemon_linux.go testutil: use filepath.WalkDir instead of filepath.Walk 2022-10-09 17:26:31 +02:00
daemon_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02: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 Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00
ops.go test: Add a test for userns remapped daemon commit 2023-11-08 12:33:03 +01:00
plugin.go testutil: replace uses of client.IsErrNotFound 2023-05-10 22:13: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 Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00
swarm.go Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00