Update examples
This commit is contained in:
37
tests/test.sh
Executable file
37
tests/test.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
rm -rf output
|
||||
|
||||
for i in ../single-cluster/*; do
|
||||
if [ ! -d $i ]; then
|
||||
continue
|
||||
fi
|
||||
pushd $i
|
||||
for j in dev test prod; do
|
||||
mkdir -p ../../tests/output/garbage/${i}
|
||||
fleet test > ../../tests/output/garbage/${i}/${j}-output.yaml
|
||||
fleet test --print-bundle > ../../tests/output/garbage/${i}/bundle.yaml
|
||||
done
|
||||
popd
|
||||
done
|
||||
|
||||
for i in ../multi-cluster/*; do
|
||||
if [ ! -d $i ]; then
|
||||
continue
|
||||
fi
|
||||
pushd $i
|
||||
for j in dev test prod; do
|
||||
mkdir -p ../../tests/output/garbage/${i}
|
||||
fleet test -l env=${j} > ../../tests/output/garbage/${i}/${j}-output.yaml
|
||||
fleet test --print-bundle > ../../tests/output/garbage/${i}/bundle.yaml
|
||||
done
|
||||
popd
|
||||
done
|
||||
|
||||
diff -iwqr output expected
|
||||
|
||||
echo All is OK
|
||||
rm -rf output
|
||||
Reference in New Issue
Block a user