terraform/internal/command/testdata
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
..
apply
apply-config-invalid
apply-destroy-targeted
apply-error
apply-input
apply-input-partial
apply-plan-no-module
apply-replace
apply-sensitive-output
apply-shutdown
apply-targeted
apply-terraform-env
apply-vars
backend-change
backend-change-multi-default-to-single
backend-change-multi-to-multi
backend-change-multi-to-no-default-with-default
backend-change-multi-to-no-default-without-default
backend-change-multi-to-single
backend-change-single-to-single
backend-changed-with-legacy
backend-from-state
backend-inmem-locked
backend-new
backend-new-interp
backend-new-legacy
backend-new-migrate
backend-new-migrate-existing
backend-plan-backend-empty
backend-plan-backend-empty-config
backend-plan-backend-match
backend-plan-backend-mismatch
backend-plan-legacy
backend-plan-legacy-data
backend-plan-local
backend-plan-local-match
backend-plan-local-mismatch-lineage
backend-plan-local-newer
backend-unchanged
backend-unchanged-with-legacy
backend-unset
backend-unset-with-legacy
empty
fmt
get
graph
import-missing-resource-config
import-module-input-variable
import-module-var-file
import-provider
import-provider-aliased
import-provider-datasource
import-provider-implicit
import-provider-invalid
import-provider-remote-state
import-provider-var
import-provider-var-default
import-provider-var-file
init
init-backend
init-backend-config-file
init-backend-config-file-change
init-backend-config-kv
init-backend-empty
init-check-required-version
init-get
init-get-provider-detected-legacy
init-get-provider-invalid-package
init-get-provider-legacy-from-state
init-get-provider-source
init-get-providers
init-internal
init-internal-invalid
init-legacy-provider-cache
init-legacy-rc
init-provider-lock-file
init-provider-lock-file-readonly-add
init-providers-lock
init-required-providers
inmem-backend
login-oauth-server
login-tfe-server
modules
parallelism
plan
plan-emptydiff
plan-invalid
plan-out-backend
plan-out-backend-legacy
plan-replace
plan-vars
providers
providers-lock/basic providers subcommand tests (#28744) 2021-05-19 12:56:16 -04:00
providers-schema
push
push-backend-new
push-input
push-input-partial
push-no-remote
push-no-upload
push-tfvars
refresh
refresh-empty
refresh-output
refresh-targeted
refresh-unset-var
refresh-var
show
show-json
show-json-sensitive
show-json-state
state-list-backend-custom
state-list-backend-default
state-list-nested-modules
state-pull-backend
state-push-bad-lineage
state-push-good
state-push-replace-match
state-push-serial-newer
state-push-serial-older
taint-check-required-version
test-fails
test-passes
validate-invalid
validate-valid
variables
empty-file
statelocker.go