Skip to content

Commit

Permalink
Use the sed instead of bats.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Aug 2, 2018
1 parent 2abb7e7 commit d6ec971
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 35 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,4 @@ jobs:
- sudo apt-get install -qqy jq httpie bats
script:
- make build
- ./build/src/cmd/vortex/vortex -config config/bats.json -port 7890 &
- sudo make src.test-bats
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ src.test-coverage-vagrant:

.PHONY: src.test-bats
src.test-bats:
sed -i.bak "s/localhost:9090/$$(minikube ip):30003/g; s/localhost:27017/$$(minikube ip):31717/g" config/testing.json
./build/src/cmd/vortex/vortex -config config/testing.json -port 7890 &
@cd tests;\
./test.sh

Expand Down
32 changes: 0 additions & 32 deletions config/bats.json

This file was deleted.

4 changes: 2 additions & 2 deletions config/testing.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
}
},
"mongo": {
"url": "mongodb://localhost:27017/vortex_test"
"url": "mongodb://172.17.8.100:31717/vortex_test"
},
"prometheus": {
"url": "http://localhost:9090"
"url": "http://172.17.8.100:30003"
},
"logger": {
"dir": "./logs",
Expand Down

0 comments on commit d6ec971

Please sign in to comment.