mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-21 10:00:09 -04:00
* test: Update`MockSource` to be able to present providers as being installed via HTTP, add `newMockProviderSourceViaHTTP` for direct use in tests. Compare newMockProviderSourceViaHTTP to the existing newMockProviderSource. newMockProviderSource uses FakeInstallablePackageMeta, which creates metadata for providers that says it's being sourced from a local archive. In newMockProviderSourceViaHTTP the metadata reports the provider is downloaded via HTTP. The URL is created using a base URL that should be obtained from a test http server created in the test. * test: Add `newMockProviderSourceUsingTestHttpServer` helper, to abstract away making the http test server. Add test showing it in use. * refactor: Update test helpers to call t.Cleanup internally |
||
|---|---|---|
| .. | ||
| providerreqs | ||
| reattach | ||
| testdata | ||
| didyoumean.go | ||
| didyoumean_test.go | ||
| doc.go | ||
| errors.go | ||
| filesystem_mirror_source.go | ||
| filesystem_mirror_source_test.go | ||
| filesystem_search.go | ||
| filesystem_search_test.go | ||
| hanging_source.go | ||
| hash.go | ||
| http_mirror_source.go | ||
| http_mirror_source_test.go | ||
| memoize_source.go | ||
| memoize_source_test.go | ||
| mock_source.go | ||
| multi_source.go | ||
| multi_source_test.go | ||
| package_authentication.go | ||
| package_authentication_test.go | ||
| public_keys.go | ||
| registry_client.go | ||
| registry_client_test.go | ||
| registry_source.go | ||
| registry_source_test.go | ||
| source.go | ||
| types.go | ||
| types_test.go | ||