Skip to content

Commit

Permalink
add env backend integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Aug 11, 2016
1 parent c6622ed commit ba7fdf6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ install:
script:
- ./test
- bash integration/consul/test.sh
- bash integration/env/test.sh
- bash integration/etcd/test.sh
- bash integration/redis/test.sh
- bash integration/rancher/test.sh
Expand Down
17 changes: 17 additions & 0 deletions integration/env/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

export KEY="foobar"
export DATABASE_HOST="127.0.0.1"
export DATABASE_PASSWORD="p@sSw0rd"
export DATABASE_PORT="3306"
export DATABASE_USERNAME="confd"
export UPSTREAM_APP1="10.0.1.10:8080"
export UPSTREAM_APP2="10.0.1.11:8080"
export PREFIX_DATABASE_HOST="127.0.0.1"
export PREFIX_DATABASE_PASSWORD="p@sSw0rd"
export PREFIX_DATABASE_PORT="3306"
export PREFIX_DATABASE_USERNAME="confd"
export PREFIX_UPSTREAM_APP1="10.0.1.10:8080"
export PREFIX_UPSTREAM_APP2="10.0.1.11:8080"

confd --onetime --log-level debug --confdir ./integration/confdir --interval 5 --backend env

0 comments on commit ba7fdf6

Please sign in to comment.