Skip to content

Instantly share code, notes, and snippets.

@mcantrell
Created February 18, 2014 21:13
Show Gist options
  • Save mcantrell/9080236 to your computer and use it in GitHub Desktop.
Save mcantrell/9080236 to your computer and use it in GitHub Desktop.
Compare two zuul environments
!/bin/bash
# Compare two zuul environments
# adapted from https://gist.github.com/thetristan/6169113
NAME=`basename $0`
ZUUL_BASE_URL="http://127.0.0.1:8080/zuul/settings"
ZUUL_LEFT_URL="$ZUUL_BASE_URL/$2/$1.properties"
ZUUL_RIGHT_URL="$ZUUL_BASE_URL/$3/$1.properties"
COMMAND="diff <(curl -is '$ZUUL_LEFT_URL') <(curl -is '$ZUUL_RIGHT_URL')"
if [ $# -ne 3 ]
then
echo "Usage: $NAME config-name dev test " 1>&2
exit 1
fi
echo "Comparing '$ZUUL_LEFT_URL' to '$ZUUL_RIGHT_URL'..."
echo $COMMAND
bash -c "$COMMAND"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment