terraform/internal/getproviders
Kristin Laemmert 649095c602
providers subcommand tests (#28744)
* getproviders ParsePlatform: add check for invalid platform strings with too many parts

The existing logic would not catch things like a platform string containing multiple underscores. I've added an explicit check for exactly 2 parts and some basic tests to prove it.

* command/providers-lock: add tests

This commit adds some simple tests for the providers lock command. While adding this test I noticed that there was a mis-copied error message, so I replaced that with a more specific message. I also added .terraform.lock.hcl to our gitignore for hopefully obvious reasons.

getproviders.ParsePlatform: use parts in place of slice range, since it's available

* command: Providers mirror tests

The providers mirror command is already well tested in e2e tests, so this includes only the most absolutely basic test case.
2021-05-19 12:56:16 -04:00
..
testdata internal/getproviders: Allow basedir for local search to be symlink 2020-08-18 14:28:50 -07:00
didyoumean.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
didyoumean_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
doc.go internal/getproviders: Query a provider registry 2020-01-10 09:41:27 -08:00
errors.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
filesystem_mirror_source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
filesystem_mirror_source_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
filesystem_search.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
filesystem_search_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
hash.go command/init: Read, respect, and update provider dependency locks 2020-10-09 09:26:23 -07:00
hash_test.go getproviders: Add a real type Hash for package hashes 2020-09-24 14:01:54 -07:00
http_mirror_source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
http_mirror_source_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
memoize_source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
memoize_source_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
mock_source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
multi_source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
multi_source_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
package_authentication.go getproviders: Prepare for having multiple valid hashes per package 2020-09-24 14:01:54 -07:00
package_authentication_test.go update getproviders tests for new key 2021-04-23 11:18:58 -04:00
public_keys.go update HC PublicKey 2021-04-23 11:18:58 -04:00
registry_client.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
registry_client_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
registry_source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
registry_source_test.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
source.go Move addrs/ to internal/addrs/ 2021-05-17 14:09:07 -07:00
types.go providers subcommand tests (#28744) 2021-05-19 12:56:16 -04:00
types_test.go providers subcommand tests (#28744) 2021-05-19 12:56:16 -04:00