1008: Implement on LocalStack

Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
Guillaume de Rouville
2021-08-20 16:09:35 +02:00
parent 4d03638911
commit 6ef0cfe321
4 changed files with 35 additions and 5 deletions

View File

@@ -77,6 +77,17 @@ copy_to_sandbox() {
fi
}
# Check if there is a localstack instance.
#
# This is needed to do docs test in the CI.
skip_unless_local_localstack() {
if [ "$(curl -s http://localhost:4566)" = '{"status": "running"}' ]; then
echo "Localstack available"
else
skip "Localstack not available"
fi
}
# Check if there is a local kubernetes cluster.
#
# This is need to do kubernetes test in the CI.