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

Adds validation tests to clusters #31

Merged
merged 25 commits into from
Nov 28, 2018
Merged

Adds validation tests to clusters #31

merged 25 commits into from
Nov 28, 2018

Conversation

Etiene
Copy link
Contributor

@Etiene Etiene commented Nov 26, 2018

  • Finishes implementation of tests for public cluster
  • Fixes a few issues with generating image and parts of the tests that needed a retry
  • Adds a bastion host to private cluster and adapts tests to go through bastion host
  • Fixes private cluster. Vault was not booting because consul was not able to join the cluster. This was happening because since the cluster is private, it didn't have internet access to request cluster info. This was fixed by creating a subnet that authorizes internal calls to the google api even without internet.
  • Validates private cluster

Future todos:

  • Add artifacts logs from private cluster to circle ci. This requires implementing a function on terratest that grabs the logs through a bastion host.
  • Update terratest version when applicable

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.

I can't comment much on GCP stuff, but overall code LGTM!

defer test_structure.RunTestStage(t, "log", func() {
//ToDo: Modify log retrieval to go through bastion host
// Requires adding feature to terratest
//writeVaultLogs(t, "vaultPublicCluster", exampleDir)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, interesting. The ssh functionality in Terratest should already support jump hosts... But that isn't yet supported with the file/log fetching coding.

@Etiene Etiene merged commit cf2f75a into master Nov 28, 2018
@Etiene Etiene deleted the validation-tests branch November 28, 2018 18:00
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.

3 participants