terraform/command/test-fixtures
Mitchell Hashimoto 1248b147ac
command/meta: always ask for unset variable input
Fixes #7975

This changes the InputMode for the CLI to always be:

    InputModeProvider | InputModeVar | InputModeVarUnset

Which means:

  * Ask for provider variables
  * Ask for user variables _that are not already set_

The change is the latter point. Before, we'd only ask for variables if
zero were given. This forces the user to either have no variables set
via the CLI, env vars, tfvars or ALL variables, but no in between. As
reported in #7975, this isn't expected behavior.

The new change makes is so that unset variables are always asked for.
Users can retain the previous behavior by setting `-input=false`. This
would ensure that variables set by external sources cover all cases.
2016-11-01 19:16:43 -07:00
..
apply dos2unix 2014-07-28 10:43:00 -07:00
apply-config-invalid dos2unix 2014-07-28 10:43:00 -07:00
apply-destroy-targeted core: targeted operations 2015-03-31 14:49:38 -05:00
apply-error dos2unix 2014-07-28 10:43:00 -07:00
apply-input command/apply: ask for user variables before validation [GH-736] 2015-01-16 10:46:38 -08:00
apply-input-partial command/meta: always ask for unset variable input 2016-11-01 19:16:43 -07:00
apply-sensitive-output core: Add support for marking outputs as sensitive (#6559) 2016-05-09 15:46:07 -04:00
apply-shutdown dos2unix 2014-07-28 10:43:00 -07:00
apply-vars dos2unix 2014-07-28 10:43:00 -07:00
get tests: remove unnecessary symlink 2015-08-31 15:45:43 -05:00
graph dos2unix 2014-07-28 10:43:00 -07:00
init command: init works at a basic level 2014-09-26 16:30:49 -07:00
parallelism command: fix flaky parallelism tests 2015-10-29 15:16:34 -05:00
plan dos2unix 2014-07-28 10:43:00 -07:00
plan-emptydiff command: plan supports detailed exit code 2015-04-01 09:38:19 -07:00
plan-invalid command/meta: validate config immediately 2016-09-03 15:26:49 -07:00
plan-vars dos2unix 2014-07-28 10:43:00 -07:00
push command/push: read name from the config 2015-03-24 13:30:23 -07:00
push-input command/push: read name from the config 2015-03-24 13:30:23 -07:00
push-input-partial command/push: read name from the config 2015-03-24 13:30:23 -07:00
push-no-upload command/push: make test more resilient 2016-08-26 13:38:02 -07:00
push-tfvars command/meta: validate config immediately 2016-09-03 15:26:49 -07:00
refresh dos2unix 2014-07-28 10:43:00 -07:00
refresh-output core: show outputs after `terraform refresh` 2015-06-15 10:41:42 -05:00
refresh-unset-var Add failing test replicating #4013 2015-11-23 10:32:46 +02:00
refresh-var dos2unix 2014-07-28 10:43:00 -07:00
validate-invalid Added verify command 2016-02-08 12:48:14 +01:00
validate-valid Added verify command 2016-02-08 12:48:14 +01:00