terraform/command/e2etest
Kristin Laemmert 9d623290f4 command/e2etest: do not leave bad directories behind
If you run the e2etests locally and use a configured plugin_cache_dir,
the test will leave a bad directory behind in your cache dir that causes
later `init`s to fail. To circumvent this, pass an explicity-empty CLI
config file.

This is a nicety for local developers and not necessarily required, but
it happens to me often enough that I'd like to fix it. It's probably not
a *bad* idea to pass an explicit cli config to all e2etests, honestly,
but this is the only one that causes active problems so I limited this
PR to that one test.

Here's the error which occurs on subsequent `init` if this test is run on a
machine that uses a plugin cache dir:

2020/10/13 10:41:05 [TRACE] providercache.fillMetaCache: error while scanning directory /Users/mildwonkey/.terraform.d/plugin-cache: failed to read metadata about /Users/mildwonkey/.terraform.d/plugin-cache/example.com/awesomecorp/happycloud/1.2.0/darwin_amd64: stat /Users/mildwonkey/.terraform.d/plugin-cache/example.com/awesomecorp/happycloud/1.2.0/darwin_amd64: no such file or directory
2020-10-21 07:53:28 -04:00
..
testdata command/cliconfig: Allow development overrides for providers 2020-10-16 14:31:15 -07:00
.gitignore command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
automation_test.go we can roll back the e2e tests 2020-09-22 09:55:19 -04:00
doc.go command/e2etest: end-to-end testing harness 2017-07-17 14:25:33 -07:00
init_test.go command/e2etest: do not leave bad directories behind 2020-10-21 07:53:28 -04:00
main_test.go [WIP] Re-enable the end-to-end tests (#20044) 2019-04-29 13:03:24 -04:00
make-archive.sh Standardise directory name for test data 2019-06-30 10:16:15 +02:00
primary_test.go we can roll back the e2e tests 2020-09-22 09:55:19 -04:00
provider_dev_test.go command/cliconfig: Allow development overrides for providers 2020-10-16 14:31:15 -07:00
providers_mirror_test.go command: terraform providers mirror 2020-06-01 14:49:43 -07:00
remote_state_test.go e2e test for remote state read 2020-06-24 14:09:59 -04:00
unmanaged_test.go e2etest server was unsynchronized 2020-09-30 14:28:02 -04:00
version_test.go command/e2etest: Update expected output for new plugin installer 2020-04-06 09:24:23 -07:00