1.5 KiB
1.5 KiB
Kubedog Integration Test
This test validates the kubedog resource tracking integration with Helmfile.
What it tests
- Basic kubedog tracking: Deploys httpbin with
trackMode: kubedogenabled - Whitelist filtering: Uses
trackKindsto only track Deployment resources - Specific resource tracking: Uses
trackResourcesto track specific resources by name - CLI flags usage: Tests
--track-modeand--track-timeoutflags - Cleanup: Ensures all releases are properly deleted
Prerequisites
- Kubernetes cluster (minikube for local testing)
- Helm 3.x installed
- kubedog library integrated (built into Helmfile)
- kubectl configured to access the cluster
Test Cases
httpbin-basic
- Simple deployment with kubedog tracking enabled
trackMode: kubedogtrackTimeout: 60secondstrackLogs: false
httpbin-with-whitelist
- Deployment with resource kind whitelist
- Only tracks
Deploymentresources - Skips
ConfigMapandSecretresources
httpbin-with-resources
- Deployment with specific resource tracking
- Tracks only the deployment by name and kind
Running the test
# Run all integration tests including kubedog
./test/integration/run.sh
# Run only kubedog test (if supported by your test framework)
# Note: Currently all tests run together via run.sh
Expected behavior
- All three httpbin deployments should be created successfully
- Kubedog should track the resources during deployment
- Deployments should reach ready state
- All releases should be cleaned up after tests