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

test: fix TestAgent_Template_Basic #8257

Merged
merged 2 commits into from
Jan 29, 2020
Merged

Conversation

calvn
Copy link
Member

@calvn calvn commented Jan 28, 2020

make test sets the environment variable VAULT_ADDR=, which then trips on this switch case when we’re parsing the flags. Since the value is then empty, the client’s Vault address then is assumed to be 12.0.0.1:8200 due to the DefaultConfig call within the client creation in here.

The issue never appeared before because we never set config.Vault.Address to the parsed flag value.

This fix is related to: #8243.

@calvn calvn added this to the 1.3.3 milestone Jan 28, 2020
@calvn calvn requested a review from kalafut January 28, 2020 22:59
Copy link
Member

@catsby catsby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@catsby catsby added bug Used to indicate a potential bug agent labels Jan 29, 2020
@calvn calvn merged commit 8f8ba51 into master Jan 29, 2020
@calvn calvn deleted the test-fix-agent-template-basic branch January 29, 2020 17:31
catsby added a commit that referenced this pull request Feb 4, 2020
…nto b-fix-mysql-lock-panic

* 'b-fix-mysql-lock-panic' of github.com:hashicorp/vault: (52 commits)
  Fix minor typo in doc string (#8277)
  Update gen_openapi.sh (#8273)
  update dependencies (#8271)
  docs: update vault k8s to 0.2.0 (#8269)
  Fix flaky test of api renewer by moving away from legacy api. (#8265)
  Clean AlibabaCloud physical backend code (#8186)
  Update GH issue template to point to forum (#8226)
  Fix default max_open_connections for db plugins (#8262)
  Fix broken link (#8259)
  Removing timing-dependent aspects of test. (#8261)
  Changelog++
  Added flag to disable X-Vault-Token header proxy if client passes the token (#8101)
  changelog++
  changelog++
  test: fix TestAgent_Template_Basic (#8257)
  docs: fix api path for merge entity identity doc (#8258)
  Bump etcd client API dep (#8037)
  Add Consul TLS options to access API endpoint (#8253)
  Docs: Add nomad TLS options (#8254)
  Update CHANGELOG.md
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent bug Used to indicate a potential bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants