Skip to content

Commit 14c6043

Browse files
authored
Fix testkube mongodb issue (#1584)
* testkube mongodb latest * Reinstall testkube * increase wait time
1 parent c6cbc78 commit 14c6043

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

test/testkube/helm-testkube-values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ mongodb:
110110
# Currently Bitnami doesn't support ARM: https://github.com/bitnami/charts/issues/7305
111111
image:
112112
# -- MongoDB image registry
113-
registry: mcr.microsoft.com
113+
registry: docker.io
114114
# -- MongoDB image repository
115-
repository: azuremonitor/containerinsights/cidev
115+
repository: bitnami/mongodb
116116
# -- MongoDB image tag
117-
tag: mongodb_6.0.5-debian-11-r64
117+
tag: latest
118118
# -- MongoDB image pull Secret
119119
pullSecrets: []
120120
nodeSelector:

test/testkube/install-and-execute-testkube-tests.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ echo "deb https://repo.testkube.io/linux linux main" | sudo tee -a /etc/apt/sour
2424
sudo apt-get update
2525
sudo apt-get install -y testkube
2626

27+
echo "Checking for existing Testkube installation..."
28+
if helm list -n testkube 2>/dev/null | grep -q testkube; then
29+
echo "Found existing Testkube installation. Cleaning up..."
30+
helm uninstall testkube -n testkube || true
31+
echo "Deleting testkube namespace..."
32+
kubectl delete namespace testkube --wait=true --timeout=120s || true
33+
echo "Waiting for namespace to fully terminate..."
34+
sleep 30
35+
echo "Cleanup complete!"
36+
else
37+
echo "No existing Testkube installation found."
38+
fi
39+
2740
echo "Install testkube on the cluster"
2841
helm repo add kubeshop https://kubeshop.github.io/helm-charts
2942
helm repo update
@@ -39,7 +52,7 @@ envsubst < ./testkube-test-crs.yaml > ./testkube-test-crs-updated.yaml
3952
kubectl apply -f ./testkube-test-crs-updated.yaml
4053

4154
echo "Wait for cluster to be ready"
42-
sleep 120
55+
sleep 200
4356

4457
echo "Run testkube tests"
4558
execution_id=""

0 commit comments

Comments
 (0)