Files
qdrant-helm/test/integration/default_installation.bats
Tim Visée b02de941ff Update chart to Qdrant 1.12.4 (#263)
* Bump Qdrant to 1.12.3

* Disallow warnings on startup

* Invert warning check

* Update PR for 1.2.4

---------

Co-authored-by: Bastian Hofmann <mail@bastianhofmann.de>
2024-11-18 21:22:35 +01:00

36 lines
1.1 KiB
Bash

setup_file() {
helm upgrade --install qdrant charts/qdrant -n qdrant-helm-integration --wait
kubectl rollout status statefulset qdrant -n qdrant-helm-integration
}
@test "helm test - default values" {
run helm test qdrant -n qdrant-helm-integration --logs
[ $status -eq 0 ]
}
@test "no startup warnings in logs" {
run kubectl logs -n qdrant-helm-integration qdrant-0
[ $status -eq 0 ]
[[ "${output}" =~ .*INFO.* ]]
if [[ "${output}" =~ .*WARN.* ]]; then
echo "Found warning output:"
echo "${output}"
return 1
fi
}
@test "no startup errors in logs" {
run kubectl logs -n qdrant-helm-integration qdrant-0
[ $status -eq 0 ]
[[ "${output}" =~ .*INFO.* ]]
[[ ! "${output}" =~ .*ERR.* ]]
}
@test "SIGTERM signals are propagated to qdrant" {
run kubectl rollout restart sts/qdrant -n qdrant-helm-integration
[ $status -eq 0 ]
# If signals aren't working, this will take >30 seconds and time out
run kubectl rollout status statefulset qdrant -n qdrant-helm-integration --timeout=15s
[ $status -eq 0 ]
}