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

Ability to Pre-provision Resources for Acceptance Tests #70

Open
KyloRilo opened this issue Apr 14, 2022 · 1 comment
Open

Ability to Pre-provision Resources for Acceptance Tests #70

KyloRilo opened this issue Apr 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@KyloRilo
Copy link

SDK version

v2.10.1

Use-cases

I'm working on acceptance tests on a TF provider for an application that leverages aws resources. I'm trying to provision ephemeral aws resources prior to my TF provider's acceptance tests running against my service. These resources would be destroyed at the end of the testing cycle.

Attempted Solutions

Common solution appears to be writing terraform, applying it, then running the acceptance testing. For ex: https://github.com/hashicorp/terraform-provider-kubernetes/tree/main/kubernetes/test-infra

Proposal

Given that we can add ExternalProviders to acceptance testing, would we also be able to leverage these to create external resources? Much like how you can PreCheck dependencies for acceptance tests, I'd like to be able to PreCheck or PreProvision cloud dependencies that would allow for my acceptance tests to run. Here we would get the ability to keep test infrastructure localized in one testing suite, while being able to perform validation or pass along data regarding infrastructure to your acceptance testing.

References

@KyloRilo KyloRilo added the enhancement New feature or request label Apr 14, 2022
@bflad
Copy link
Contributor

bflad commented Feb 28, 2023

Hi folks 👋

With the introduction of the terraform-plugin-testing module (migration guide), we are transferring feature requests relating to the helper/resource "testing framework" in the terraform-plugin-sdk repository over to the new terraform-plugin-testing repository.

Thanks again for this feature request.

@bflad bflad transferred this issue from hashicorp/terraform-plugin-sdk Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants