From f3063b25c11eee57593412a51f035fee08ca5a97 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 9 Oct 2014 11:31:28 -0700 Subject: [PATCH] Adding script to verify no UUID generation done in state store --- Makefile | 1 + scripts/verify_no_uuid.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 scripts/verify_no_uuid.sh diff --git a/Makefile b/Makefile index 8d8e2f078a..ddf0c548af 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ deps: @echo $(DEPS) | xargs -n1 go get -d test: deps + ./scripts/verify_no_uuid.sh go list ./... | xargs -n1 go test integ: diff --git a/scripts/verify_no_uuid.sh b/scripts/verify_no_uuid.sh new file mode 100755 index 0000000000..228bd652b7 --- /dev/null +++ b/scripts/verify_no_uuid.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +grep generateUUID consul/state_store.go +RESULT=$? + +if [ $RESULT -eq 0 ]; then + exit 1 +fi