Skip to content

Comments

integration: add more Docker container handler tests#3817

Merged
dims merged 1 commit intogoogle:masterfrom
dims:add-docker-integration-tests
Jan 16, 2026
Merged

integration: add more Docker container handler tests#3817
dims merged 1 commit intogoogle:masterfrom
dims:add-docker-integration-tests

Conversation

@dims
Copy link
Collaborator

@dims dims commented Jan 16, 2026

Add new integration tests to improve coverage of the Docker container handler:

  • TestDockerContainerRestartCount: Tests restart count label capture (may skip if container exits before query)
  • TestDockerContainerDiskIoStats: Tests DiskIo stats collection
  • TestDockerContainerNetworkNone: Tests containers with --network none
  • TestDockerContainerNetworkHost: Tests containers with --network host
  • TestDockerContainerSharedNetwork: Tests containers with shared network namespace (--network container:X), exercising code path near the GraphDriver nil pointer fix
  • TestDockerContainerImageInfo: Tests image metadata capture
  • TestDockerContainerCreationTime: Tests creation timestamp accuracy

Add new integration tests to improve coverage of the Docker container
handler:

- TestDockerContainerRestartCount: Tests restart count label capture
  (may skip if container exits before query)
- TestDockerContainerDiskIoStats: Tests DiskIo stats collection
- TestDockerContainerNetworkNone: Tests containers with --network none
- TestDockerContainerNetworkHost: Tests containers with --network host
- TestDockerContainerSharedNetwork: Tests containers with shared network
  namespace (--network container:X), exercising code path near the
  GraphDriver nil pointer fix
- TestDockerContainerImageInfo: Tests image metadata capture
- TestDockerContainerCreationTime: Tests creation timestamp accuracy

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims dims force-pushed the add-docker-integration-tests branch from fe3af6f to 71ebcb0 Compare January 16, 2026 15:17
@google google deleted a comment from google-cla bot Jan 16, 2026
@dims dims merged commit 4344f86 into google:master Jan 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant