You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add integration tests for docker-compose deployer
Add comprehensive integration tests for the Docker Compose deployer:
1. Test data:
- integration/testdata/docker-compose-deploy/
- integration/examples/docker-compose-deploy/
2. Integration tests:
- TestDeleteDockerComposeDeployer: Tests deployment and cleanup
- TestDevCancelWithDockerComposeDeployer: Tests dev loop cancellation
3. Helper functions:
- getComposeContainers: Filters containers by compose project label
- waitForComposeContainersRunning: Waits for compose containers to start
These tests verify that:
- Docker Compose deployments work correctly
- Containers are properly started with correct labels
- Cleanup (delete) removes all compose containers
- Dev mode can be gracefully canceled
The tests use Docker Compose's project label (com.docker.compose.project)
to identify containers, which works with the dynamic project naming
(skaffold-{runID}) used by the deployer.
This also fixes the CI error from check-samples.sh by adding the required
integration/examples directory.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments