memgraph/tests/e2e/dependency_check.sh
2023-09-12 11:34:08 -04:00

15 lines
306 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
check_service_in_use() {
if docker ps --format "{{.Names}}" | grep -q "$1"; then
echo "$2 is successfully working"
else
echo "$2 needs to be available"
exit 1
fi
}
check_service_in_use "kafka" "Kafka service"
check_service_in_use "pulsar" "Pulsar service"