(t *testing.T, ctx context.Context, name string)
| 944 | } |
| 945 | |
| 946 | func assertContainerLogConfig(t *testing.T, ctx context.Context, name string) { |
| 947 | t.Helper() |
| 948 | c, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) |
| 949 | require.NoError(t, err) |
| 950 | defer c.Close() |
| 951 | |
| 952 | info, err := c.ContainerInspect(ctx, name) |
| 953 | require.NoError(t, err) |
| 954 | |
| 955 | assert.Equal(t, "json-file", info.HostConfig.LogConfig.Type) |
| 956 | assert.Equal(t, docker.ContainerLogMaxSize, info.HostConfig.LogConfig.Config["max-size"]) |
| 957 | assert.Equal(t, "1", info.HostConfig.LogConfig.Config["max-file"]) |
| 958 | } |
| 959 | |
| 960 | func countContainers(t *testing.T, ctx context.Context, prefix string) int { |
| 961 | t.Helper() |
no test coverage detected
searching dependent graphs…