The current framework does not support running acceptance tests in Rancher v2.7.9 and v2.8.1.
Here is how the acceptance test works:
step 1: start a k3s cluster, currently using the versionv1.19.10-k3s1
step 2: deploy Rancher v2.3.6 using Helm
step 3: create a set of Resources via TF into the Rancher setup, and validate the expected values present
step 4: upgrade Rancher to 2.5.9 using Helm
Steps 3 and 4 are repeated to upgrade and test on Rancher v2.4.13, v2.5.9, and v2.6.2.
To add the tests for the PSACT resource, I tried to add Rancher v2.7.9 and v2.8.1 to the version list. However, it did not work due to the following reasons:
the local cluster version, v1.19.10-k3s1, is too old for Rancher v2.7.9 and v2.8.1, as well as a newer version of Cert-manager, to run
Some legacy resources, such as rancher2_app, can be not deployed in Rancher v2.7.2 and above. More specifically the app used in the test is deprecated and no new chart is available.
To make the acceptance test work, we need to:
add support for upgrading the local cluster
add support for deploying new versions of Rancher and Cert-manger
filter out the broken tests on the newer version of Rancher
The current framework does not support running acceptance tests in Rancher v2.7.9 and v2.8.1.
Here is how the acceptance test works:
To add the tests for the PSACT resource, I tried to add Rancher v2.7.9 and v2.8.1 to the version list. However, it did not work due to the following reasons:
To make the acceptance test work, we need to: