hashicorp / terraform-cloud-operator

Kubernetes Operator allows managing HCP Terraform resources via Kubernetes Custom Resources.
https://developer.hashicorp.com/terraform/cloud-docs
Mozilla Public License 2.0
114 stars 27 forks source link

🛠️ Update tests to generate unique names #348

Closed arybolovlev closed 4 months ago

arybolovlev commented 4 months ago

Description

Update tests to generate unique names for items. That helps to avoid a situation when tests fail when they run in envtest due to sub-objects(such as ConfigMap or Secret) are not removed properly. In the future, this will simplify the migration to running tests in parallel.

Tests:

Usage Example

N/A.

References

Depends on: https://github.com/hashicorp/terraform-cloud-operator/pull/347

Community Note