When updating your operator it's beneficial to add e2e tests for new functionality AND ensure existing functionality is not breaking using e2e tests. To do this, following steps are recommended:
- Deploy your new version of operator in a test cluster
- Get kubeadmin credentials from your cluster using:
ocm get /api/clusters_mgmt/v1/clusters/(cluster-id)/credentials | jq -r .kubeconfig > /path/to/kubeconfig- Run test suite using:
KUBECONFIG=/path/to/kubeconfig make test-e2eOr to disable JUnit reports:
DISABLE_JUNIT_REPORT=true KUBECONFIG=/path/to/kubeconfig make test-e2e