forked from kelseyhightower/confd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integration tests for etcdv3; update etcdv2 integration's port
- Loading branch information
Showing
3 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/bin/bash | ||
|
||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/key -d value=foobar | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/database/host -d value=127.0.0.1 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/database/password -d value=p@sSw0rd | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/database/port -d value=3306 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/database/username -d value=confd | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/upstream/app1 -d value=10.0.1.10:8080 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/upstream/app2 -d value=10.0.1.11:8080 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/prefix/database/host -d value=127.0.0.1 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/prefix/database/password -d value=p@sSw0rd | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/prefix/database/port -d value=3306 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/prefix/database/username -d value=confd | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/prefix/upstream/app1 -d value=10.0.1.10:8080 | ||
curl -L -X PUT http://127.0.0.1:4001/v2/keys/prefix/upstream/app2 -d value=10.0.1.11:8080 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/key -d value=foobar | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/database/host -d value=127.0.0.1 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/database/password -d value=p@sSw0rd | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/database/port -d value=3306 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/database/username -d value=confd | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/upstream/app1 -d value=10.0.1.10:8080 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/upstream/app2 -d value=10.0.1.11:8080 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/prefix/database/host -d value=127.0.0.1 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/prefix/database/password -d value=p@sSw0rd | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/prefix/database/port -d value=3306 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/prefix/database/username -d value=confd | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/prefix/upstream/app1 -d value=10.0.1.10:8080 | ||
curl -L -X PUT http://127.0.0.1:2379/v2/keys/prefix/upstream/app2 -d value=10.0.1.11:8080 | ||
|
||
|
||
# Run confd | ||
confd --onetime --log-level debug --confdir ./integration/confdir --backend etcd --node http://127.0.0.1:4001 --watch | ||
confd --onetime --log-level debug --confdir ./integration/confdir --backend etcd --node http://127.0.0.1:2379 --watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
ETCDCTL_API=3 etcdctl put /key foobar | ||
ETCDCTL_API=3 etcdctl put /database/host 127.0.0.1 | ||
ETCDCTL_API=3 etcdctl put /database/password p@sSw0rd | ||
ETCDCTL_API=3 etcdctl put /database/port 3306 | ||
ETCDCTL_API=3 etcdctl put /database/username confd | ||
ETCDCTL_API=3 etcdctl put /upstream/app1 10.0.1.10:8080 | ||
ETCDCTL_API=3 etcdctl put /upstream/app2 10.0.1.11:8080 | ||
ETCDCTL_API=3 etcdctl put /prefix/database/host 127.0.0.1 | ||
ETCDCTL_API=3 etcdctl put /prefix/database/password p@sSw0rd | ||
ETCDCTL_API=3 etcdctl put /prefix/database/port 3306 | ||
ETCDCTL_API=3 etcdctl put /prefix/database/username confd | ||
ETCDCTL_API=3 etcdctl put /prefix/upstream/app1 10.0.1.10:8080 | ||
ETCDCTL_API=3 etcdctl put /prefix/upstream/app2 10.0.1.11:8080 | ||
|
||
|
||
# Run confd | ||
confd --onetime --log-level debug --confdir ./integration/confdir --backend etcdv3 --node http://127.0.0.1:2379 --watch |