Skip to content

Commit

Permalink
Normalize local resource addresses to localhost (#21)
Browse files Browse the repository at this point in the history
- this also fixes not being able to connect on Windows
  • Loading branch information
aharpervc committed Jun 27, 2019
1 parent 29ac6ff commit 02e743f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions spec/support/config/consult.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ env: test

shared:
consul:
address: http://0.0.0.0:8500
address: http://localhost:8500

vault:
address: http://0.0.0.0:8200
address: http://localhost:8200
token: 94e1a9ed-5d72-5677-27ab-ebc485cca368

templates:
Expand Down
12 changes: 6 additions & 6 deletions spec/support/populate_consul.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
curl \
--request PUT \
--data @spec/support/consul-services.json \
http://0.0.0.0:8500/v1/catalog/register
http://localhost:8500/v1/catalog/register

curl \
-H "X-Vault-Token: 94e1a9ed-5d72-5677-27ab-ebc485cca368" \
-X POST \
--data @spec/support/vault-test-data.json \
http://127.0.0.1:8200/v1/secret/data/database_credentials
http://localhost:8200/v1/secret/data/database_credentials

curl \
--request PUT \
--data 'db1.local.net' \
http://0.0.0.0:8500/v1/kv/infrastructure/db1/dns
http://localhost:8500/v1/kv/infrastructure/db1/dns

curl \
--request PUT \
--data $'Earth is the <%= vars[:earth] %>th element\n' \
http://0.0.0.0:8500/v1/kv/templates/elements/earth
http://localhost:8500/v1/kv/templates/elements/earth

curl \
--request PUT \
--data $'Love is the <%= vars[:love] %>th element!\n' \
http://0.0.0.0:8500/v1/kv/templates/elements/love
http://localhost:8500/v1/kv/templates/elements/love

curl \
--request PUT \
--data $'Aziz! <%= vars[:aziz] %>\n' \
http://0.0.0.0:8500/v1/kv/templates/elements/aziz
http://localhost:8500/v1/kv/templates/elements/aziz

0 comments on commit 02e743f

Please sign in to comment.