Update argoCD test

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-09-09 13:03:07 +02:00
committed by Sam Alba
parent a73b34d096
commit 2a91ae1d80
5 changed files with 143 additions and 98 deletions

View File

@@ -81,6 +81,17 @@ skip_unless_local_kube() {
fi
}
# Check if there is a local endpoint.
#
# This is necessary to do test with endpoint.
# Usage:
# skip_unless_endpoint_available "localhost:8080"
skip_unless_endpoint_available() {
local endpoint="$1"
curl "$endpoint"
}
# Cleanup local Localstack instances
setup_localstack() {
if [ "$(curl -s http://localhost:4566)" = '{"status": "running"}' ] && \