terraform-ibm-modules / terraform-ibm-mas

Deploys Maximo Application Suite on an IBM Cloud openshift cluster.
Apache License 2.0
2 stars 1 forks source link

Use new test wrapper hooks to ensure prereq resource do not deploy when upgrade test is skipped #137

Open ocofaigh opened 5 months ago

ocofaigh commented 5 months ago

The upgrade test added in https://github.com/terraform-ibm-modules/terraform-ibm-mas/pull/108 is configured in a way that even if the commit using SKIP UPGRADE TEST is used, the prereqs will still be deployed.

The test wrapper was recently updated with the ability to use hooks: https://pkg.go.dev/github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper@v1.35.1/testhelper#TestOptions

These could be used to ensure prereqs do no get deployed when upgrade test is skipped