terraform/internal/getproviders
Martin Atkins c6535a0fa4 internal/getproviders: Tests for MultiSource
Due to other pressures at the time this was implemented, it was tested
only indirectly through integration tests in other packages.

This now introduces tests for the two main entry points on the
MultiSource, along with its provider-address pattern matching logic.

This does not yet include thorough tests for
ParseMultiSourceMatchingPatterns, because that function still needs some
adjustments to do the same case folding as for normal provider address
parsing, which will follow in a latter commit along with suitable tests.

With that said, the tests added here do _indirectly_ test the happy path
of ParseMultiSourceMatchingPatterns, so we have some incomplete testing
of that function in the meantime.
2020-04-07 08:55:13 -07:00
..
testdata/filesystem-mirror internal/getproviders: Initial implementation of FilesystemMirrorSource 2020-02-25 10:30:03 -05:00
doc.go internal/getproviders: Query a provider registry 2020-01-10 09:41:27 -08:00
errors.go internal/getproviders: Implement MultiSource 2020-04-06 09:24:23 -07:00
filesystem_mirror_source.go internal/getproviders: Make local directory search a public API 2020-03-25 11:29:48 -07:00
filesystem_mirror_source_test.go internal/getproviders: Initial implementation of FilesystemMirrorSource 2020-02-25 10:30:03 -05:00
filesystem_search.go internal/getproviders: SearchLocalDirectory can handle symlinks 2020-03-25 13:50:00 -07:00
http_mirror_source.go internal/getproviders: Stub out the two mirror sources 2020-01-10 09:41:27 -08:00
legacy_lookup.go internal/getproviders: LookupLegacyProvider 2020-01-22 09:02:22 -08:00
legacy_lookup_test.go internal/getproviders: LookupLegacyProvider 2020-01-22 09:02:22 -08:00
memoize_source.go internal/getproviders: MemoizeSource for local caching of source responses 2020-01-10 09:41:27 -08:00
mock_source.go internal: Fix init provider lockfile test 2020-04-06 09:24:23 -07:00
multi_source.go internal/getproviders: Implement MultiSource 2020-04-06 09:24:23 -07:00
multi_source_test.go internal/getproviders: Tests for MultiSource 2020-04-07 08:55:13 -07:00
package_authentication.go internal/getproviders: Tidy up some confusion about package hashes 2020-04-06 16:31:23 -07:00
registry_client.go internal/getproviders: Tidy up some confusion about package hashes 2020-04-06 16:31:23 -07:00
registry_client_test.go internal/getproviders: LookupLegacyProvider 2020-01-22 09:02:22 -08:00
registry_source.go internal/getproviders: LookupLegacyProvider 2020-01-22 09:02:22 -08:00
registry_source_test.go internal/getproviders: Tidy up some confusion about package hashes 2020-04-06 16:31:23 -07:00
source.go internal/getproviders: Source interface for generalization 2020-01-10 09:41:27 -08:00
types.go internal/getproviders: Tidy up some confusion about package hashes 2020-04-06 16:31:23 -07:00