This website requires JavaScript.
Explore
Help
Register
Sign In
upstream
/
opentofu
Watch
1
Star
0
Fork
You've already forked opentofu
0
mirror of
https://github.com/opentofu/opentofu.git
synced
2026-05-28 04:15:54 -04:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
2
introduce_plugin_manager
opentofu
/
internal
/
command
/
testdata
/
providers-lock
/
basic
/
main.tf
7 lines
109 B
Terraform
Raw
Permalink
Normal View
History
Unescape
Escape
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
terraform
{
required_providers
{
test
=
{
Revert "Fixes #898: Replace hashicorp and terraform references" (#995)
2023-12-11 15:10:03 -05:00
source
=
"
hashicorp/test
"
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
}
}
}
Reference in a new issue
Copy permalink