mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
* 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. |
||
---|---|---|
.. | ||
testdata | ||
didyoumean_test.go | ||
didyoumean.go | ||
doc.go | ||
errors.go | ||
filesystem_mirror_source_test.go | ||
filesystem_mirror_source.go | ||
filesystem_search_test.go | ||
filesystem_search.go | ||
hash_test.go | ||
hash.go | ||
http_mirror_source_test.go | ||
http_mirror_source.go | ||
memoize_source_test.go | ||
memoize_source.go | ||
mock_source.go | ||
multi_source_test.go | ||
multi_source.go | ||
package_authentication_test.go | ||
package_authentication.go | ||
public_keys.go | ||
registry_client_test.go | ||
registry_client.go | ||
registry_source_test.go | ||
registry_source.go | ||
source.go | ||
types_test.go | ||
types.go |