Adding script to verify no UUID generation done in state store

This commit is contained in:
Armon Dadgar 2014-10-09 11:31:28 -07:00
parent fe125992fe
commit f3063b25c1
2 changed files with 9 additions and 0 deletions

View File

@ -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:

8
scripts/verify_no_uuid.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
grep generateUUID consul/state_store.go
RESULT=$?
if [ $RESULT -eq 0 ]; then
exit 1
fi