Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated tests for Terraform provider #30

Closed
jawnsy opened this issue Jun 7, 2023 · 2 comments · Fixed by #71
Closed

Automated tests for Terraform provider #30

jawnsy opened this issue Jun 7, 2023 · 2 comments · Fixed by #71
Assignees

Comments

@jawnsy
Copy link
Contributor

jawnsy commented Jun 7, 2023

The Terraform Plugin Framework includes a test harness for writing integration tests: https://developer.hashicorp.com/terraform/plugin/framework/acctests

Our automated tests would require an external endpoint and secrets, though we can optionally mock out the remote server or use Prefect server for some tests. The Terraform test framework does not support unit testing, so validating errors or warnings may be more difficult (it is not currently possible to check for warnings given a Terraform configuration/run; see: hashicorp/terraform-plugin-testing#69)

There is currently no test coverage for this provider and changes are tested manually on local development machines. It would be preferable to automate these tests, so that we can more easily review and accept pull request contributions.

@parkedwards
Copy link
Contributor

@parkedwards
Copy link
Contributor

parkedwards commented Oct 25, 2023

also configure helpers for:

  • precheck
  • check destroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants