mirror of
https://github.com/outbackdingo/qdrant-helm.git
synced 2026-01-27 18:20:15 +00:00
* 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>
36 lines
1.1 KiB
Bash
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 ]
|
|
}
|