03c8cbcdc2
I934561612d26befd88a9053262836b47bdf4efb0 renamed the rabbit ssl parameters that we use in the same environment generate but since the script did not fail, it made it past CI. This change fixes the RabbitClientUseSsl parameter in the environment to match the new RpcUseSsl flag and updates the check script to fail if this happens again. Change-Id: I47c63875c6934bca2903883787467fc1804ba5da Closes-Bug: #1768358
29 lines
587 B
Bash
Executable File
29 lines
587 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Report an error if the generated sample environments are not in sync with
|
|
# the current configuration and templates.
|
|
|
|
echo 'Verifying that generated environments are in sync'
|
|
|
|
tmpdir=$(mktemp -d)
|
|
trap "rm -rf $tmpdir" EXIT
|
|
|
|
./tripleo_heat_templates/environment_generator.py sample-env-generator/ $tmpdir/environments
|
|
|
|
base=$PWD
|
|
retval=0
|
|
|
|
cd $tmpdir
|
|
|
|
file_list=$(find environments -type f)
|
|
for f in $file_list; do
|
|
if ! diff -q $f $base/$f; then
|
|
echo "ERROR: $base/$f is not up to date"
|
|
diff $f $base/$f
|
|
retval=1
|
|
fi
|
|
done
|
|
|
|
exit $retval
|