20 lines
415 B
Bash
Executable File
20 lines
415 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
script=scripts/docker-smoke.sh
|
|
sh -n "$script"
|
|
|
|
grep -q 'SMOKE_PROJECT' "$script"
|
|
grep -q -- '--project-name' "$script"
|
|
grep -q 'KEEP_SMOKE_RESOURCES' "$script"
|
|
grep -q 'down --volumes' "$script"
|
|
|
|
if grep -q -- 'down --remove-orphans' "$script"; then
|
|
echo "smoke cleanup must not remove operator orphans" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "docker-smoke isolation contract passed."
|