Skip to content

Conversation

saschjmil
Copy link
Contributor

@saschjmil saschjmil commented May 15, 2025

Adding the terratest unit testing framework. This framework mirrors the one in AWS and Azure.

One difference is that GCP expects the credentials to be stored in a file rather than exported variables. This caused some changes in the GitHub workflow.

@github-actions github-actions bot added the enhancement New feature or request label May 15, 2025
@saschjmil saschjmil temporarily deployed to terraformSecrets May 15, 2025 20:00 — with GitHub Actions Inactive
Signed-off-by: chjmil <[email protected]>
@saschjmil saschjmil temporarily deployed to terraformSecrets May 16, 2025 22:20 — with GitHub Actions Inactive
@saschjmil saschjmil temporarily deployed to terraformSecrets June 3, 2025 16:15 — with GitHub Actions Inactive
@saschjmil saschjmil marked this pull request as ready for review June 3, 2025 16:15
Copy link
Member

@dhoucgitter dhoucgitter left a comment

Choose a reason for hiding this comment

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

Pulled this branch content and:
Successfully built the viya4-iac-gcp-terratest image using the Dockerfile.terratest file using the documented docker build command.
Ran a set of commands from the TerratestDockerUsage.md file including

  • Running the Plan tests
  • Running the Apply tests
  • Running a Specific test based on name regex

The output from each execution was consistent with expectations based on go test output and the visible annotations.

@saschjmil saschjmil merged commit e176223 into main Jun 4, 2025
6 checks passed
@saschjmil saschjmil deleted the pr-pskd-1682 branch June 4, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants