Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Add test for Vault Enterprise install #92

Merged
merged 2 commits into from
Aug 30, 2018
Merged

Conversation

Etiene
Copy link
Contributor

@Etiene Etiene commented Aug 29, 2018

  • Adds test for vault enterprise install

@infosecgithub

@Etiene Etiene force-pushed the test/enterprise-install branch from 5f16334 to 9822e24 Compare August 29, 2018 17:09
@Etiene Etiene changed the title [wip] Add test for Vault Enterprise install Add test for Vault Enterprise install Aug 29, 2018
@Etiene
Copy link
Contributor Author

Etiene commented Aug 29, 2018

Please review #87 before this one and I will rebase appropriately

@Etiene Etiene requested a review from brikis98 August 29, 2018 17:26
Copy link
Collaborator

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

New tests look good! Just minor comments and merge away.


func TestVaultClusterEnterpriseWithAmazonLinuxAmi(t *testing.T) {
t.Parallel()
runVaultEnterpriseClusterTest(t, "amazon-linux-ami", "ec2-user", os.Getenv("VAULT_AMI_TEMPLATE_VAR_DOWNLOAD_URL"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

The use of an env var here won't be obvious to future maintainers. Consider add a method that:

  1. Explicitly checks if the env var is set
  2. Reports an error that says "Env var xxx not found. Please set it to a Vault Enterprise download URL to run this test."
  3. Add a comment to the method explaining that Vault Enterprise URLs should be kept secret, so we use an env var to avoid putting it directly in our code or logs.

// 3. Deploy that AMI using the example Terraform code
// 4. SSH to a Vault node and initialize the Vault cluster
// 5. SSH to each Vault node and unseal it
// 5. SSH to a Vault node and make sure you can communicate with the nodes via Consul-managed DNS
Copy link
Collaborator

Choose a reason for hiding this comment

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

5 is repeated twice (if you copy/pasted this comment block, might be a bug in the original!). Also, add another step here: check enterprise version of Vault got installed correctly.

@Etiene Etiene force-pushed the test/enterprise-install branch from 5a29519 to 28212b8 Compare August 30, 2018 12:30
@Etiene Etiene merged commit 43d5e86 into master Aug 30, 2018
@Etiene Etiene deleted the test/enterprise-install branch August 30, 2018 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants