terraform/internal/getproviders
Sarah French 1edd518394
test: Add test helper for mocking out use of a network mirror as a provider source (#38447)
* refactor: Add `NewMockHTTPMirrorSource` test helper. This required refactoring `NewMockHTTPMirrorSource` to pull out reused logic.

* refactor: Move structs defining expected HTTP responses from a network mirror into `getproviders` package

* feat: Add `newHTTPMirrorProviderSourceUsingTestHttpServer` test helper, for tests that need to include use of a network mirror when downloading providers.
2026-04-28 11:56:35 +01:00
..
providerreqs make copyrightfix 2026-02-17 13:56:34 +00:00
reattach make copyrightfix 2026-02-17 13:56:34 +00:00
testdata internal/getproviders: Allow basedir for local search to be symlink 2020-08-18 14:28:50 -07:00
didyoumean.go make copyrightfix 2026-02-17 13:56:34 +00:00
didyoumean_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
doc.go make copyrightfix 2026-02-17 13:56:34 +00:00
errors.go make copyrightfix 2026-02-17 13:56:34 +00:00
filesystem_mirror_source.go make copyrightfix 2026-02-17 13:56:34 +00:00
filesystem_mirror_source_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
filesystem_search.go make copyrightfix 2026-02-17 13:56:34 +00:00
filesystem_search_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
hanging_source.go make copyrightfix 2026-02-17 13:56:34 +00:00
hash.go make copyrightfix 2026-02-17 13:56:34 +00:00
http_mirror_source.go test: Add test helper for mocking out use of a network mirror as a provider source (#38447) 2026-04-28 11:56:35 +01:00
http_mirror_source_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
memoize_source.go make copyrightfix 2026-02-17 13:56:34 +00:00
memoize_source_test.go test: Enable mocking http provider sources in tests (#38206) 2026-02-26 10:24:13 +00:00
mock_source.go refactor: Separate concerns in mock provider sources logic, handle callbacks using t.Cleanup (#38446) 2026-04-27 12:13:55 +01:00
multi_source.go make copyrightfix 2026-02-17 13:56:34 +00:00
multi_source_test.go test: Enable mocking http provider sources in tests (#38206) 2026-02-26 10:24:13 +00:00
package_authentication.go make copyrightfix 2026-02-17 13:56:34 +00:00
package_authentication_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
public_keys.go getproviders+releaseauth: Remove expired PGP key (#38422) 2026-04-23 19:31:31 +01:00
registry_client.go make copyrightfix 2026-02-17 13:56:34 +00:00
registry_client_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
registry_source.go make copyrightfix 2026-02-17 13:56:34 +00:00
registry_source_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
source.go make copyrightfix 2026-02-17 13:56:34 +00:00
supplymode.go PSS: Refactor how we handle unmanaged providers, add support for using dev_override (#38269) 2026-04-14 15:07:56 +01:00
types.go make copyrightfix 2026-02-17 13:56:34 +00:00
types_test.go make copyrightfix 2026-02-17 13:56:34 +00:00