Commit Graph

1217 Commits (c73a5fc07da195af2ee2b2958a04e495df00a7b1)

Author SHA1 Message Date
Martin Atkins cbc548eb36 command: Do CLI init of backend loaded from plan
8 years ago
James Bardin 52c0032aed update provisioners for multiple processes
8 years ago
James Bardin 795161f615 update to start a new process for each plugin
8 years ago
Martin Atkins 412439ae01 command: Un-stub tests that were previously hanging on the inmem backend
8 years ago
Martin Atkins 058a1d81b0 command/format: Remove tests for plan.go
8 years ago
Martin Atkins 3b8d46418f command/format: print correctly nested blocks with labels
8 years ago
Martin Atkins b0016e9cf6 command: Allow tests to run to completion without panics or hangs
8 years ago
Martin Atkins d446d32d96 command: Fix TestApply for new mock provider interface
8 years ago
Martin Atkins 5021e0e098 command: Fix TestApply_destroyTargeted for new provider and state types
8 years ago
Martin Atkins db3ea65e8b command: Fix TestApply_destroy for new provider and state types
8 years ago
Martin Atkins be7bce493e command: Update plugins_test.go for new provider types
8 years ago
Martin Atkins dc0b5292a6 command: Update refresh_test.go for new provider types
8 years ago
Martin Atkins b195c712a3 command: Update plan_test.go for new provider types
8 years ago
Martin Atkins 54c1616d73 command: Update import_test.go for new provider types
8 years ago
Martin Atkins 65341b0973 command: Update apply_test.go for new provider types
8 years ago
Martin Atkins d9051be66d command: Use new provider and provisioner types in test helpers
8 years ago
Martin Atkins a43b7df282 core: Handle forced-create_before_destroy during the plan walk
8 years ago
Martin Atkins b428746cfd command: UiHook to report when it gets incorrect values
8 years ago
Martin Atkins a37d5268eb command/format: Render unified diff for list and tuple value changes
8 years ago
Martin Atkins 30a46ed8ed command/format: Further refinement on the heuristic JSON-based diff
8 years ago
Martin Atkins 783205948c command/format: JSON value formatting heuristic not for primitive values
8 years ago
Martin Atkins 4406b06ef8 command/format: Don't include commas after elements in map diffs
8 years ago
Martin Atkins ce157c7f23 command/format: show deep diffs for old/new JSON strings
8 years ago
Martin Atkins 9706a00b3a command/format: correct alignment for multi-line values in map diff
8 years ago
Martin Atkins 04d8c17be8 command/format: Nice rendering for changes to map values
8 years ago
Martin Atkins a2f4b8b058 command/format: Show resource diff with header "comment"
8 years ago
Martin Atkins 239a54ad6f command: initial structural diff rendering
8 years ago
Martin Atkins a7342de274 core: Properly handle no-op changes in plan
8 years ago
Martin Atkins 5731703de5 command/format: show planned changes in rendered plan
8 years ago
Martin Atkins 44bc7519a6 terraform: More wiring in of new provider types
8 years ago
Martin Atkins a3403f2766 terraform: Ugly huge change to weave in new State and Plan types
8 years ago
Kristin Laemmert ce5e66e178 plugin/discovery provider installer: download providers from the registry
8 years ago
Martin Atkins 479c6b2466 move "configschema" from "config" to "configs"
8 years ago
Martin Atkins adb88eaa16 configupgrade: Analysis of input configuration
8 years ago
Martin Atkins eac8779870 command: validate must set values for root variables
8 years ago
Martin Atkins ffe5f7c4e6 command: 0.12upgrade command
8 years ago
Martin Atkins 0742e756e5 tfdiags: Sort order for diagnostics
8 years ago
Martin Atkins 2ef56b3e05 Fix up some missed "go fmt"
8 years ago
Martin Atkins dc7f793be9 command: terraform fmt to use new HCL formatter
8 years ago
Martin Atkins a270a18a4d command: Update tests for changes in "terraform" package
8 years ago
Martin Atkins fc7871c5ee command/import: default provider config in same module
8 years ago
Martin Atkins f085af4ba6 command: update "terraform console" for HCL2
8 years ago
Martin Atkins 9ca13d5c1d command/validate: make sure diagnostics is always present and an array
8 years ago
Martin Atkins c937c06a03 terraform: ugly huge change to weave in new HCL2-oriented types
8 years ago
Martin Atkins 4ed06a9227 terraform: HCL2-flavored module dependency resolver
8 years ago
Martin Atkins ebafa51723 command: Various updates for the new backend package API
8 years ago
Martin Atkins 5782357c28 backend: Update interface and implementations for new config loader
8 years ago
Martin Atkins 618883596a command: remove "terraform push"
8 years ago
Martin Atkins 9a004e3f9d command: "terraform validate" JSON support
8 years ago
Martin Atkins bfd9392eb8 command: beginnings of new config loader in "terraform validate"
8 years ago
Martin Atkins fd5b7b42b8 command: new Meta methods for accessing the new config loader
8 years ago
Martin Atkins bd10b84a8e command/format: include source snippets in diagnostics
8 years ago
Sander van Harmelen b1fdbd7db8 Allow enhanced backends to pass custom exit codes
8 years ago
Sander van Harmelen 67db9da000 Add checks for all flags we currently don’t support
8 years ago
Kevin Carmody 7ac9a576bb
Update wrong usage workspace command description
8 years ago
Sander van Harmelen 36bd5d6480 Make sure the state is locked before it is used
8 years ago
Sean Chittenden d749420a25
Fix drift caused from gofmt when running make dev and go 1.11.
8 years ago
Oleg Butuzov 2ac15fdae4 command: Fix inconsistent spacing in "terraform push -help"
8 years ago
Sander van Harmelen ce2869dced
Merge pull request #18760 from hashicorp/f-remote-backend
8 years ago
Sander van Harmelen f410a5bb26 backend/migrations: migrate the default state
8 years ago
Sander van Harmelen 1696ade924 backend/migrations: check all workspaces
8 years ago
Sander van Harmelen 7fb2d1b8de Implement the Enterprise enhanced remote backend
8 years ago
Sander van Harmelen 179b32d426 Add a `CredentialsForHost` method to disco.Disco
8 years ago
Sander van Harmelen 495d1ea350 Use New() instead of `once.Do(b.init)`
8 years ago
Sander van Harmelen 97d1c46602 Update the backend import names
8 years ago
Aurelie Vache 7a29a03e21 command: help text for "workspace" to include "list" verb
8 years ago
Kristin Laemmert 33877bd579 cli: update tests
8 years ago
Lyle Franklin 26b907387d cli: Remove error on empty outputs when `-json` is set (#11721)
8 years ago
Kristin Laemmert b8a1a77f6b
command: fix spelling in error message - fixes #18065 (#18241)
8 years ago
James Bardin 545e77e184
Merge pull request #17711 from hashicorp/jbardin/cleanup-temps
8 years ago
James Bardin e980156451 cleanup temp files from command tests
8 years ago
Masayuki Morita 1e2bb07504 command: Restore `auto-approve` flag in the output of `apply -help`
8 years ago
James Bardin 90a75422fb unlock state in console, import, graph, and push
8 years ago
Martin Atkins 6aefa5835c Merge #17218: Add -auto-approve to "terraform destroy" for consistency
8 years ago
James Bardin dc8036636a
Merge pull request #17422 from hashicorp/jbardin/state-locking
8 years ago
James Bardin 2b97585d46 improve clistate.Locker docs
8 years ago
Uriel Corfa 07a20365de cli: "terraform state list" -id argument
8 years ago
James Bardin bdd475e149 use the new clistate.Locker in commands
8 years ago
James Bardin e9a76808df create clistate.Locker interface
8 years ago
James Bardin 12bda53558 Revert "create clistate.Locker interface"
8 years ago
James Bardin 3de0d24554 Revert "use the new clistate.Locker in commands"
8 years ago
James Bardin 400f6ca4c5 use the new clistate.Locker in commands
8 years ago
James Bardin e88bd74bb7 create clistate.Locker interface
8 years ago
James Bardin a37acb1837 gofmt with go1.10
8 years ago
James Bardin ecd9ef0f77 ignore error in plan shutdown test
8 years ago
James Bardin 67a6152091 move backend operation cancellation into meta
8 years ago
James Bardin 7cba68326a always wait for a RunningOperation to return
8 years ago
Laura Martin 6e1e614a56 Change -force to -auto-approve when destroying
8 years ago
James Bardin 6f41a80b3a slow down the plan shutdown tests for slow hosts
8 years ago
Masayuki Morita 338d5cad70 Remove duplicated help messages from `workspace --help`
8 years ago
Masayuki Morita f440dba137 Standardize on log level "WARN" rather than "WARNING"
8 years ago
Martin Atkins a6008b8a48
v0.11.2
8 years ago
James Bardin 61c2be3e95
Merge pull request #16969 from hashicorp/jbardin/reset-plugin-dir
8 years ago
James Bardin 7d5f7cb22f
Merge pull request #16961 from hashicorp/jbardin/mock-provider-race
8 years ago
James Bardin 504ea578ee
Merge pull request #16920 from hashicorp/jbardin/init-future-state
8 years ago
James Bardin dec2da1dda
Merge pull request #17044 from hashicorp/jbardin/plugin-dir-internal
8 years ago
James Bardin 6367572455
Merge pull request #16882 from Techcadia/f-provider-logging
8 years ago
James Bardin fe3aff91f3 missingPlugins should not return internal plugins
8 years ago
James Bardin 5a975d9997 add test for internal plugins with -plugin-dir
8 years ago
James Bardin 5a9e0cf763 create a new InternalProviders test
8 years ago
James Bardin ba84faf4e1 remove the plugin path only for an empty string
8 years ago
James Bardin f62b71710a
Merge pull request #16939 from hashicorp/jbardin/migrate-confirm
8 years ago
James Bardin f45205feb7 re-word state migration prompts
8 years ago
James Bardin 4b49a323c3 go fmt
8 years ago
James Bardin 79e985366f allow init to reset -plugin-dir
8 years ago
James Bardin d76482cd89 don't try to interrupt diff in shutdown test
8 years ago
James Bardin e63a3474d5 kill the flag error writer after 2 seconds
8 years ago
James Bardin 885e4cde81 don't loop indefinitely in confirm method
8 years ago
James Bardin 7d2da9865e inputFalse test should attempt migration and check error
8 years ago
James Bardin 909dff36a8 remove extra "yes" confirmation in tests
8 years ago
James Bardin 7c93b2e5e6 remove duplicate backend migration prompts
8 years ago
James Bardin ea4cb6a20e check state version during init
8 years ago
Martin Atkins f1079257ac command: show a special error message when importing in an empty dir
8 years ago
Techcadia e681907c50 [Add] Pathing and Override Output to DEBUG Command
8 years ago
Nolan Davidson 653db95df7 Initial implementation of a habitat provisioner
8 years ago
Martin Atkins 9a5c865040 command: validate config as part of loading it
8 years ago
James Bardin 12b7dac124
Merge pull request #16833 from hashicorp/jbardin/plan-shutdown
8 years ago
Eyal Posener e1dadaae44 command: use newer version of "complete" library
8 years ago
James Bardin 2941ed464c replace the testShutdownHook with a check for Stop
8 years ago
James Bardin e2501d7830 make apply shutdown test completely deterministic
9 years ago
James Bardin 3aaa1e9d04 make plans cancellable
9 years ago
Martin Atkins ba0514106a return tfdiags.Diagnostics from validation methods
9 years ago
James Bardin 3c807e5427 update state test strings in command package
9 years ago
Martin Atkins 3b180d7f8a
Merge #16543: Bring the "terraform" provider back into core
9 years ago
Martin Atkins d4ee58ce59 Re-integrate the "terraform" provider into the main binary
9 years ago
James Bardin 964054efc0 update tests for updated output
9 years ago
James Bardin 1bf64ec788 add "Updating" output and fix output tests
9 years ago
James Bardin 9c334fe012 update init output
9 years ago
James Bardin 523b121341 fix get test working directory
9 years ago
Martin Atkins 3da5fefdc1 command: Allow TF_DATA_DIR env var to override data directory
9 years ago
Martin Atkins 400038eda4 command: "terraform apply" uses interactive confirmation by default
9 years ago
James Bardin 53c8c1e208 e2e test for `init -from-module`
9 years ago
James Bardin f64851242e use Storage.GetModule for init -from-module
9 years ago
James Bardin 5203c66116 pass command credentials into module.Storage
9 years ago
James Bardin 3a495ffe56 rename ModuleStorage to Storage
9 years ago
James Bardin f2a7b94692 use the new ModuleStorage in the command package
9 years ago
Martin Atkins 5347f82f9a command: Include provider versions in "terraform version"
9 years ago
Martin Atkins 34cecfa839 command/e2etest: fix incorrect "terraform version" test
9 years ago
James Bardin 47c45788bc Merge pull request #16406 from hashicorp/jbardin/version-package
9 years ago
Patrick Van Stee a4a53f6f99 command/validate: Load plugins from plugin_path file
9 years ago
James Bardin 36b8be43e8 use the new version package
9 years ago
Martin Atkins 865e61b4ea main+command: provide service disco and creds to commands
9 years ago
Martin Atkins 6f7bc4f5d7 command: use c.showDiagnostics for backend operation errors
9 years ago
Martin Atkins 5cd00a13ec command: use new diagnostics output for config errors
9 years ago
Martin Atkins ea81e75a4e command: utility for rendering tfdiag diagnostics
9 years ago
Martin Atkins fc20f419dd config and command: use errwrap to propagate config load errors
9 years ago
Martin Atkins 86343fa895 Remove test output file accidentally added in 52c97e9f
9 years ago
James Bardin 91442b7146 Merge pull request #15680 from brunomcustodio/etcdv3-backend
9 years ago
Martin Atkins 30e6f4e066 command/e2etest: test installation of plugins from cache
9 years ago
Martin Atkins 5c0670fdf4 command: allow callers to activate a plugin cache
9 years ago
Martin Atkins 73d1298572 command/e2etest: test the "running in automation" workflow
9 years ago
Martin Atkins cb6d4e5f20 command/e2etest: fix TestPrimarySeparatePlan test
9 years ago
Martin Atkins ece06c35b8 command: parameter autocomplete for "terraform workspace ..."
9 years ago
Martin Atkins 793da43a72 command: workspace name autocomplete helper
9 years ago
Martin Atkins e4f18c3f4d command: multi-argument autocomplete helper
9 years ago
Martin Atkins 2ed9aa6077 command: autocomplete data for "terraform init"
9 years ago
Martin Atkins 82fefbc599 command: add some common autocomplete predictors
9 years ago
Sunny 8928c5a60a command/state-rm: tell the user how many items were removed
9 years ago
Jack Bruno 3f2136d7ee cli: terraform import -ignore-missing-config
9 years ago
Jearvon Dharrie 5afe1d39d1 Add `/downloads` to the outdated version message
9 years ago
Martin Atkins 0fe43c8977 cli: allow disabling "next steps" message in terraform plan
9 years ago
Martin Atkins b95610c173 Merge #15387: terraform fmt -check option
9 years ago
Martin Atkins fe4cfd03b5 command/format: restore "(forces new resource)" caption
9 years ago
Bruno Miguel Custodio 52c97e9fc9
First steps towards an 'etcdv3' backend.
9 years ago
Martin Atkins 83414beb8f command: various adjustments to the diff presentation
9 years ago
Martin Atkins d4efc95191 command: show resource actions using resource addresses
9 years ago
Martin Atkins 3ea159297c command/format: improve consistency of plan results
9 years ago
Sunny 3a1582c1b9 command/validate: read terraform.tfvars file for variable values
9 years ago
Sunny 2d849f8650 command/init: check required_version
9 years ago
Martin Atkins c12d64f340 Use t.Helper() in our test helpers
9 years ago
Radek Simko 4e8ccb3127 Merge pull request #15828 from hashicorp/e2e-decoupling
9 years ago
Radek Simko aabab16069
command/init: Remove extra whitespace
9 years ago
Michael Handler 817d1c4869 Output duration in UiHook after successful operation completion.
9 years ago
James Bardin 18af7750d4 Merge pull request #14720 from sevagh/master
9 years ago
Radek Simko 9e7e4ff4fb
e2e: Decouple logic for running e2e tests
9 years ago
Radek Simko 28b33c9299
plugin: Display version + source when initializing plugins
9 years ago
Radek Simko 38cb98fb0c
Comply w/ latest changes in mitchellh/cli
9 years ago
James Bardin ea3e87b584 Merge pull request #15768 from hashicorp/jbardin/remote-import
9 years ago
James Bardin 5bcc1bae59 Merge pull request #15769 from hashicorp/jbardin/discovery-paths
9 years ago
James Bardin 2bb5007690 Merge pull request #15683 from hashicorp/jbardin/remote-state-lineage
9 years ago
James Bardin 37932c3cd6 make state_rm flag description match state_mv
9 years ago
James Bardin 4034f988df update import command docs
9 years ago
James Bardin 54998933f5 load Meta.PluginOverrides in dicovery
9 years ago
James Bardin fa20d43d80 test loading of Meta.PluginOverrides
9 years ago
James Bardin e3748901b4 Don't ForceLocal for the import backend
9 years ago
Sevag Hanssian 867760ed56 Add salt-masterless provisioner
9 years ago
James Bardin eadda50f02 Merge pull request #15652 from hashicorp/jbardin/state-command
9 years ago
James Bardin 55d18dcef2 update state rm amd mv docs
9 years ago
James Bardin 07b0101fb5 update workspace new test for inmem backend
9 years ago
James Bardin 16e8e405c7 create failing test cases for remote lineage issue
9 years ago
Martin Atkins 8a7a0a7459 command: terraform init -from-module=...
9 years ago
James Bardin 51547ad2ba add tests for state commands through a backend
9 years ago
James Bardin 5b4ae36cb0 don't print help for state loading errors
9 years ago
James Bardin 33ba6774e0 Make the state commands use the real command.Meta
9 years ago
James Bardin 45a9edb763 make state mv and rm work with remote states
9 years ago
Kyle McCullough ad896b65c9
command: add -check flag to fmt (#15304)
9 years ago
James Bardin 0bca383b6b Merge pull request #15528 from alrs/command-swallowed-errors
9 years ago
Lars Lehtonen 119996b815
Return immediately after newly-added error condition
9 years ago
James Bardin eb02467298 Merge pull request #15588 from hashicorp/jbardin/no-graph-config
9 years ago
James Bardin f10163ecc7 graph should not panic with no config
9 years ago
Martin Atkins 23f9c8785e command/e2etest: an initial test for the primary workflow
9 years ago
Martin Atkins 52df81ee49 command/e2etest: test that we can install provider plugins
9 years ago
Martin Atkins 0e0b0d125a command/e2etest: "terraform version" test
9 years ago
Martin Atkins fee61a44b4 command/e2etest: end-to-end testing harness
9 years ago
Lars Lehtonen 8501d83e6c
Fix swallowed errors in command package.
9 years ago
James Bardin 583cc350a9 fix minor races in workspace tests
9 years ago
James Bardin f7f1e8e406 Sort arguments in Meta.process
9 years ago
James Bardin 0fdcf2c01e properly cleanup and print correct error messages
9 years ago
Robert Liebowitz 4bf2269784 Add test case for autoloading tfvars
9 years ago
Robert Liebowitz e67ecb5ce2 Restructure Meta.process to logically group code
9 years ago
Robert Liebowitz 8d98fdecac Autoload only .auto.tfvars files
9 years ago
Robert Liebowitz 006744bfe0 Use all tfvars files in working directory
9 years ago
Martin Atkins 39c4d6ab1f Merge #15424: Improve robustness of state persistence handling
9 years ago
Martin Atkins fee1197cf9 command: terraform state rm to require at least one argument
9 years ago
James Bardin fb397060eb add some Serial checks to apply and refresh tests
9 years ago
James Bardin 054716c397 use testStateRead helper in apply tests
9 years ago
James Bardin 501cbeaffe testState shouldn't rely on mods from WriteState
9 years ago
Mike Helmick 9d7fce2f69 command: "terraform workspace show" to print current workspace name
9 years ago
Martin Atkins 4d53eaa6df state: more robust handling of state Serial
9 years ago
Radek Simko 14614a5423 command/validate: Add flag to check that all variables are specified (#13872)
9 years ago
Jake Champlin 9944ea6886
core: Skip provider checksum validation based on env var
9 years ago
James Bardin da1c45b566 Merge pull request #15412 from hashicorp/jbardin/windows-delete-workspace
9 years ago
James Bardin 1c78dfb286 Unlock state before workspace deletion
9 years ago
David Glasser 14af879fe0 command: also print plan for destroy
9 years ago
David Glasser 039d36bf91 command: add "apply -auto-approve=false" flag
9 years ago
James Bardin 22074f1029 Merge pull request #15408 from hashicorp/jbardin/import-plugin-dir
9 years ago
Patrick Aikens 7775ef809b Display correct to and from backends in copy message when migrating to new remote state (#15318)
9 years ago
James Bardin 85b9069eb7 test import with -plugin-dir
9 years ago
James Bardin 0cbd51c365 find -plugin-dir during import
9 years ago
Martin Atkins 3df164502a command: don't prompt for state migration if TF_INPUT is set
9 years ago
James Bardin 833cc9a6c5 Fix state mv/rm -backup documentation
9 years ago
James Bardin 6e7baaaeff don't load the backend when -state is provided
9 years ago
James Bardin 5f939b42fe test that `state mv -state` doesn't use Backend
9 years ago
James Bardin 4893fcc24f improve plugin error formatting
9 years ago
James Bardin 103ab20b00 add required and found versions to error output
9 years ago
James Bardin 7a955f990c make display plugin checksum error to user
9 years ago
Martin Atkins 0dc6d97a37 command/format: minor adjustments to plan rendering
9 years ago
Martin Atkins 40e2fbb8e9 command: init to allow plugin init without backend init
9 years ago
Martin Atkins 3dc7d618f7 command: avoid empty string constraints in plugin install errors
9 years ago
James Bardin c10f5caf05 Merge pull request #15345 from hashicorp/jbardin/plugin-sig
9 years ago
Martin Atkins 9c2fe3456b command: purge unused plugins as a side effect of plugin installation
9 years ago
Martin Atkins d48dcbb4a5 command: more-helpful error messages from plugin installation
9 years ago
James Bardin 0a47228065 add -verify-plugins flag to init
9 years ago
James Bardin 6728c48d8c fix whitespace around backend init success message
9 years ago
James Bardin da385c4268 Don't show plugin init message if there are none
9 years ago
James Bardin 2e57d284cb Merge pull request #15323 from hashicorp/jbardin/constraint-suggestion
9 years ago
James Bardin ec99b6910b remove "~> 0.0" constraint suggestions
9 years ago
James Bardin 270eedd4b8 always pass in the full plugin path to dicovery
9 years ago
James Bardin be2069ac81 add -plugin-dir option
9 years ago
James Bardin 000e860706 Add plugin dir scaffolding
9 years ago