Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize local resource addresses to localhost #21

Merged
merged 1 commit into from
Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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