hashicorp / hashicorp/terraform-plugin-testing

Add docs for `ExternalProviders` in TestCase

Open
#349 2 comments 1 reaction 0 assignees View on GitHub
documentation
Dominant language
Go
Stars
68
Forks
22
Avg merge
2d 12h
Merged PRs (30d)
1

Description

### Use cases
There are some useful utility provider like [`null`](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) and [`http`](https://registry.terraform.io/providers/hashicorp/http/latest), which might be used in the acceptance tests of the another provider.

### Attempted solutions
Importing those providers as Go packages and placing them into the provider factory. This doesn't work well because many providers doesn't follow Golang's package standard.

See this example: https://github.com/hashicorp/terraform-provider-http/pull/428

### Proposal
Maybe we can have a new field on `Test` struct to allow setup of other providers?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.