Commit Graph

1374 Commits (f-langserver)

Author SHA1 Message Date
findkim 161fe47b34 plugin/discovery: improve providery discovery verification errors
7 years ago
Martin Atkins e918fa83ec command/format: Don't panic when item removed from list of objects
7 years ago
Justin Campbell e696e063dc
Merge pull request #20674 from hashicorp/registry-warnings
7 years ago
Justin Campbell e6316c9de6 plugin/discovery: Parse warnings from TF Registry
7 years ago
Justin Campbell 24e13d8ec1 plugin/discovery: Return tfdiags from Get
7 years ago
Martin Atkins c39905e1a8 command: Fix various issues in the "terraform state ..." subcommands
7 years ago
Kristin Laemmert c73a5fc07d
command/show: add provider name to resource changes (#20711)
7 years ago
Kristin Laemmert 9d0d564ec7
`terraform show` and `terraform providers schema -json` should return valid json (#20697)
7 years ago
James Bardin 0569e39788 don't try to treat "null" as json in diff output
7 years ago
Kristin Laemmert a15a4acf2f
configs/configupgrade: detect possible relative module sources (#20646)
7 years ago
James Bardin a8df5586c0 check for errors when loading a backend config
7 years ago
Martin Atkins 2d41c1009b command/format: Diffs for NestingMap block types
7 years ago
Martin Atkins dd1fa322a7 command/format: Support list/map blocks with dynamic-typed attrs
7 years ago
Martin Atkins 69772b11b1 command/format: test for diff rendering with dynamic-typed subattrs
7 years ago
Kristin Laemmert 30672faebe
remove indentation from json output of `show` and `providers schema` (#20623)
7 years ago
James Bardin b8e53255b4 Revert "remove NormalizeObjectFromLegacySDK from diff"
7 years ago
Sander van Harmelen 973e2a7cf9 core: add a context to the UIInput interface
7 years ago
James Bardin a95d97f066
Merge pull request #20595 from hashicorp/jbardin/normalize-objects
7 years ago
James Bardin 5c40d6610c remove NormalizeObjectFromLegacySDK from diff
7 years ago
Brian Flad 20a814028d
command: Consistency implement and document parallelism default of 10
7 years ago
Kristin Laemmert b9d8e96e0c
command/plan: plan output should indicate if a resource is being (#20580)
7 years ago
Kristin Laemmert d72defd044
command/show and state show: honor user-specified plugin-dir (#20557)
7 years ago
James Bardin 369d512e22
Merge pull request #20546 from hashicorp/jbardin/backend-init-panic
7 years ago
James Bardin 2adf5801d9 don't panic of the users aborts backend input
7 years ago
Kristin Laemmert 8fb4e5ce6e
command/show: differentiate between state schemas and plan schemas. (#20516)
7 years ago
Kristin Laemmert c4151b7c7c
command/show: fixing bugs in modulecalls (#20513)
7 years ago
Kristin Laemmert 21f6e3dffd
Mildwonkey/012 docs updated (#20542)
7 years ago
Martin Atkins f193b11073 command/format: Normalize before/after values before rendering
7 years ago
James Bardin f43b87a61e
Merge pull request #20480 from hashicorp/jbardin/backend-init
7 years ago
James Bardin c814f2da37 Change backend.ValidateConfig to PrepareConfig
7 years ago
Martin Atkins 6b6be3af35 command: Remove promise of plan -validate-only from validate docs
7 years ago
Kristin Laemmert 16823f43de
command/jsonprovider: export providers schemas to json (#20446)
7 years ago
Martin Atkins 552dddfb4c command: Specialized error message for var decls in tfvars
7 years ago
Kristin Laemmert 4dd8192ec7
Merge pull request #20352 from hashicorp/mildwonkey/show-docs
7 years ago
Nick Fagerlund 3c42508700
Apply suggestions from code review
7 years ago
Kristin Laemmert 0c94e20a83
command/show enhancements and bugfixes
7 years ago
Kristin Laemmert b14472f22c
command/jsonconfig: add missing fields from configuration output (#20387)
7 years ago
Kristin Laemmert 874b333962
command/format: fix an issue where data resources were not displaying (#20386)
7 years ago
Kristin Laemmert c59a274e96
command/jsonplan: "deposed" should be a string, not a bool. (#20351)
7 years ago
Kristin Laemmert 818b4ec068
command/show: add "module_version" to "module_calls" in config (#20367)
7 years ago
Kristin Laemmert a43004e382 website/docs: add detailed documentation for the json serialization of
7 years ago
Kristin Laemmert f7ab90207c website/docs: add -json flag to terraform show docsn
7 years ago
Kristin Laemmert f783ed0d45
command/jsonconfig: display module variables in config output (#20311)
7 years ago
Martin Atkins eb1346447f
Merge #20282: Enforce expected behaviors for provider PlanResourceChange
7 years ago
Martin Atkins 0b7179c363 command: Apply tests with realistic mock providers
7 years ago
Kristin Laemmert f2f35265bc
command/show: json output enhancements (#20291)
7 years ago
Martin Atkins 7e186f72d9 command: Update "terraform show -json" tests for changed provider contract
7 years ago
Kristin Laemmert c810e4582c
command/show: continued work on `terraform show -json` output (#20171)
7 years ago
Radek Simko 101454a609
command: Fix TestUiHookPostApply_emptyState
7 years ago
Kristin Laemmert 653bb74403
command/format: include nested blocks in `terraform show` output (#20149)
7 years ago
Radek Simko 37f397dded
command/test: Clarify failure (add full path)
7 years ago
Kristin Laemmert a2ac491cde
command/show: improvements to json output (#20139)
7 years ago
Kristin Laemmert 6e057c529e
command/jsonplan: sort resources by address (#20113)
7 years ago
Kristin Laemmert 514ac6b890
command/show: improvements to show -json output (#20110)
7 years ago
Kristin Laemmert e9099b4fcc
command/jsonplan: fix panic when filteredAfter is null (#20096)
7 years ago
Kristin Laemmert f00fcb90bf
mildwonkey/b-show-state (#20032)
7 years ago
Radek Simko b492c3662c
Merge pull request #20089 from hashicorp/t-cmd-fmt-sensitive-update
7 years ago
Radek Simko f04d0b48bc
command/format: Add test to cover update of sensitive field
7 years ago
Radek Simko 953eae7e4b
command/format: Fix rendering of different types
7 years ago
Radek Simko f3d1565d6f
command/format: Fix tuple diff formatting
7 years ago
Radek Simko 0dff8fe5e0
Add failing test case for tuple
7 years ago
Radek Simko 3d0a25c65d
command/format: Fix nested (JSON) object formatting
7 years ago
Radek Simko c5ba7469be
command/format: Fix rendering of unknown elements in set/map/list
7 years ago
Radek Simko 98cc99e632
command/format: Add crashing test with unknown element in map
7 years ago
Radek Simko 73225c7aeb
command/format: Add crashing test with unknown element in list
7 years ago
Radek Simko e7e8b7358f
command/format: Add crashing test with unknown element in set
7 years ago
Martin Atkins 8b094f48f7 command: Update "terraform get" to use the new module installer
7 years ago
Martin Atkins 176a5abfd3 command: Restore single-file support in "terraform fmt"
7 years ago
Martin Atkins b0a43cab84 command: "terraform fmt" must fail if file has invalid syntax
7 years ago
findkim 7816e61614 Bump installer protocol version to 5 and separate client and server protocol references
7 years ago
Radek Simko 13896d72c5
command/format: Render empty object as {}
7 years ago
Radek Simko 5f14b7a7f2
command/format: Render empty primitive list/set as []
7 years ago
Radek Simko 09d19ca9d9
command/format: Render empty JSON object as {}
7 years ago
Radek Simko 0dd2d56f18
command/format: Render empty maps as {}
7 years ago
Kim Ngo 41a2376915
Merge pull request #19981 from findkim/colorize-protocol-mismatch-msg
7 years ago
findkim 6e0de3e3f5 Nest incompatible provider protocol error to include dynamic custom msg
7 years ago
Radek Simko aae87c7921
Merge pull request #19990 from hashicorp/f-cmd-fmt-ignore-empty-str
7 years ago
Martin Atkins 86c02d5c35 command: "terraform init" can partially initialize for 0.12upgrade
7 years ago
Martin Atkins 0c0a437bcb Move module install functionality over to internal/initwd
7 years ago
Radek Simko d96f4fa77b
command/format: Ignore removal of empty strings
7 years ago
Kristin Laemmert 5df9cd0f52
command/show: tests for -json output (#19980)
7 years ago
Radek Simko bc4b7cad68
command/format: Render null in dark gray (#19616)
7 years ago
Kristin Laemmert cdf7cc2449
command/json*: updating documentation and adding tests (#19944)
7 years ago
Sander van Harmelen fb57e9b26f command/state: add proper locking
7 years ago
Kristin Laemmert 3e9c51c726
command/jsonstate: marshal state into a machine readable blob o'json (#19911)
7 years ago
Kristin Laemmert 2b6dc13f29
jsonplan: remove "proposed_unknown" structure in favor of "after_unknown" field in "change" (#19709)
7 years ago
Martin Atkins 2cf63d068f command: Always normalize config path before operations
7 years ago
Kristin Laemmert 126e5f337f
json output of terraform plan (#19687)
7 years ago
James Bardin 149ccd929e missing commits from 19688
7 years ago
James Bardin 9667e06a03 decode backend hash as uint64
7 years ago
Charles Kenney 2dfc3a399d command: allow -no-color option on "providers" command
7 years ago
Radek Simko f64978b64c
backend/local: Render CBD replacement (+/-) correctly (#19642)
7 years ago
Masayuki Morita 33e1839730 command/hook_ui: Truncate the ID considering multibyte characters
7 years ago
Radek Simko b28efa0bf3
command/format: Fix tests
7 years ago
Radek Simko 0b981fa641
command/format: Fix rendering of force-new updates
7 years ago
Radek Simko fe117e9f02
command/format: Fix rendering of nested blocks during update
7 years ago
Radek Simko 2df886397b
command/format: Add more tests to cover non-primitive fields
7 years ago
Radek Simko e3e459a8d4
command/format: Restructure tests
7 years ago
Radek Simko 49e7026bdd
command/format: Add tests for ResourceChange renderer
7 years ago
Kristin Laemmert e3cecb7d56
format/state: added missing newline in the `outputs` output (#19542)
7 years ago
Radek Simko 9e5677adeb
Merge pull request #19453 from hashicorp/b-whole-body-diag-rendering
8 years ago
Radek Simko 501fcd1e21
Fix tests after upgrading hcl
8 years ago
Radek Simko 4f2868a019
command/format: Fix rendering of attribute-agnostic diagnostics
8 years ago
Sander van Harmelen ef9054562e commands: make sure the correct flagset is used
8 years ago
Sander van Harmelen 79a9a15879 command/state: lock when pushing state
8 years ago
Martin Atkins 884aa387b8 command: Use vendoring when building helper programs in tests
8 years ago
Martin Atkins 5255e85238 "go fmt" fixups
8 years ago
Martin Atkins 73c9521a04 command/e2etest: Temporarily disable tests that access network
8 years ago
Martin Atkins 37bc187f95 command: "terraform output" mustn't panic when no state is present
8 years ago
Martin Atkins 53b5b95ef5 command: Fix TestRefresh_backup
8 years ago
Martin Atkins 762a173c7f command: Fix TestRefresh_outPath
8 years ago
Martin Atkins e2ba90fdfa command: Fix TestMetaBackend_planLocalMatch
8 years ago
Martin Atkins 48601d261d states/statemgr: In Filesystem, back up output file, not input file
8 years ago
Martin Atkins 27abd9c6b8 command: Fix TestMetaBackend_localDoesNotDeleteLocal
8 years ago
Martin Atkins be79bf0412 command: Fix TestPlan_outBackend
8 years ago
Martin Atkins b316e4ab56 command: Fix TestImport_remoteState
8 years ago
Martin Atkins 2b9f92be31 command: Partially fix TestMetaBackend_planLocalStatePath
8 years ago
Martin Atkins aecb66d3db command: Fix TestMetaBackend_configuredChangeCopy_multiToNoDefaultWithoutDefault
8 years ago
Martin Atkins ec27526cc3 command: Fix TestMetaBackend_configuredChangeCopy_multiToMulti
8 years ago
Martin Atkins 6c7cecfbd8 command: More logging during migration
8 years ago
Martin Atkins f39a5d0962 command: Fix various TestMetaBackend-prefix tests
8 years ago
Martin Atkins 22c84c71a4 command: Use statemgr.Import and statemgr.Export for state push and pull
8 years ago
Martin Atkins aacbe1d14b command: Fix TestMetaBackend_configureNewWithState
8 years ago
Martin Atkins 24046ab833 command: More TRACE logging for the Backend instantiation codepaths
8 years ago
Martin Atkins 2293391241 command: Fix TestMetaBackend_emptyWithExplicitState
8 years ago
Martin Atkins 8c54da0ad2 command: TestInit_fromModule_explicitDest guard against other tests
8 years ago
Martin Atkins ced06a4ca3 command: fix panic in TestStatePush_lineageMismatch
8 years ago
Martin Atkins 544c2932ce command: Fix TestInit_checkRequiredVersion
8 years ago
Martin Atkins 9ba399bca8 command: Fix TestInit_getProvider
8 years ago
Martin Atkins f6d468ffd5 command: Fix TestInit_inputFalse
8 years ago
Martin Atkins c0b7f58143 command: Fix detection of necessary backend migration
8 years ago
Sander van Harmelen 5e9414bf03 backend/migrations: only select workspaces if supported
8 years ago
Martin Atkins 297b3b8830 command: Fix TestInit_backendReinitConfigToExtra
8 years ago
Martin Atkins b5547f00f6 command: backendConfig must mutate its copy, not the original
8 years ago
Martin Atkins 8b603e4877 command: Name the Terraform Registry specifically in error message
8 years ago
Martin Atkins 592850e22c command: Fix TestApply_plan_remoteState
8 years ago
Martin Atkins c05a556c0e command: Fix TestRefresh_backup
8 years ago
Martin Atkins ad276142b4 command: Fix the command package test build
8 years ago
Martin Atkins 1e45d30036 command: Fix TestPlan_outBackend
8 years ago
Martin Atkins c3d11b762b command: Fix testBackendState
8 years ago
Martin Atkins e20346bf4f command: fix TestMeta_process
8 years ago
Martin Atkins fcf3f643ce command: Fix TestPlan_shutdown
8 years ago
Martin Atkins 0ea8aa6fe5 command: Fix TestWorkspace_createWithState
8 years ago
Sander van Harmelen 52a1b22f7a Implement the remote enhanced backend
8 years ago
Sander van Harmelen b62a22ab62 Add a VariableSourceType for names .tfvars files
8 years ago
Sander van Harmelen 178ec8f7b4 Remove support for the -module-depth flag
8 years ago
Sander van Harmelen 643fccc923
Merge pull request #19250 from hashicorp/f-inputs
8 years ago
Sander van Harmelen 5944e8e34f Fix the ability to ask for and save user input
8 years ago
Sander van Harmelen 5458a91985 command/state: update and fix the state show command
8 years ago
Sander van Harmelen 7ec3f96e3a command/state: update and fix the state mv command
8 years ago
Sander van Harmelen 19c1241a50 command/state: update and fix the state rm command
8 years ago
James Bardin e93d69f18b more nil/known checks before val.LengthInt
8 years ago
Sander van Harmelen 536c2fe6f1 Make `state mv` use the new `states.Filter`
8 years ago
Sander van Harmelen 5e11de460a
Merge pull request #19130 from hashicorp/f-state-push-pull
8 years ago
Sander van Harmelen 7fbd93b5cd command/state: update and fix the state push and pull
8 years ago
Sander van Harmelen a88ba31b63
Merge pull request #19129 from hashicorp/f-show-list
8 years ago
Sander van Harmelen 83168ea25f
Merge pull request #19127 from hashicorp/b-prepare-provider
8 years ago
Sander van Harmelen af1a471a05 command/state: update and fix the state list command
8 years ago
Sander van Harmelen 4d6626b3a8 Terraform show didn’t show absolute paths
8 years ago
Sander van Harmelen b846c5f653 Make the test compile again
8 years ago
Martin Atkins 17b883f592 command/format: Include variable values in diagnostic messages
8 years ago
James Bardin e08a388d3c check IsKnown on values that may panic
8 years ago
Sander van Harmelen 48ef7ecfa6 Updates after running `make fmt` with Go v1.11.1
8 years ago
James Bardin fe9ed37dfc minor fixes for command Apply tests
8 years ago
Martin Atkins 541952bb8f Revert some work that happened since v0.12-dev branched
8 years ago
Martin Atkins 8e51363f04 command: Don't allow -var and -var-file when applying saved plan
8 years ago
Martin Atkins 7abf81d8da command: Restore support for terraform.tfvars.json
8 years ago
Martin Atkins 66f96cf842 command: Un-stub and reimplement "terraform state rm"
8 years ago
Martin Atkins 40eda180d6 command: go fmt in import_test.go and refresh_test.go
8 years ago
Martin Atkins 8b466811d2 command: Fix a few tests from meta_backend_test.go
8 years ago
Martin Atkins 86b7963bba command: Fix tests for "terraform providers"
8 years ago
Martin Atkins 5b61cc919b command: Fix "terraform import" tests
8 years ago
Martin Atkins 7b77e20bdc command: Fix several "terraform init" tests
8 years ago
Martin Atkins 89d0944e5b command: Fix even more of the "terraform refresh" tests
8 years ago
Martin Atkins 5d1d6a95f9 command: "go fmt" of plan_test.go
8 years ago
Martin Atkins e54848b86f command: Fix many (but not all) "terraform refresh" tests
8 years ago
Martin Atkins 73abb6e8f4 command: Re-enable showing outputs after successful "apply"
8 years ago
Martin Atkins 98bbd560b5 command: Fix most (but not all) "terraform plan" tests
8 years ago
Martin Atkins ca314afc0d command: Make suitable provider schemas available for all "plan" tests
8 years ago
Martin Atkins 73318a436b command: go fmt
8 years ago
Martin Atkins 53bb3f57e6 command: Remove tests related to legacy remote state migrations, etc
8 years ago
Martin Atkins 275a44f552 command: Reinstate object ids in the UIHook progress logs
8 years ago
Martin Atkins 43d5206d82 command: Stub the "terraform state mv" tests to remind to fix
8 years ago
Martin Atkins 1d64ce8ec0 command: Fix "terraform validate" tests
8 years ago
Martin Atkins 025540789c command: Restore the "terraform output" functionality
8 years ago
Martin Atkins feff10dcb5 command: Fix TestGraph_plan
8 years ago
Martin Atkins c0baedac84 command: Fix tests for "terraform fmt" command
8 years ago
Martin Atkins 74582447bb command: Make input variable values available to "terraform console"
8 years ago
Martin Atkins 741d334ee4 command: Even more fixes for "apply" command tests
8 years ago
Martin Atkins 34a29315f7 command: More fixes (but still not all) for "apply" command tests
8 years ago
Martin Atkins de3944b9bf command: collect root module variable values for apply/plan/refresh
8 years ago
Martin Atkins fc2614c939 command: Fix some tests for the "apply" command
8 years ago
Martin Atkins 34c4fd316d command: Update backend-unchanged fixture for new expectations
8 years ago
Martin Atkins 34ebde0b95 command/format: be resilient to incomplete schema when formatting state
8 years ago
Kristin Laemmert 3cf1b001c2 command/format: revert indentation change for consistency's sake
8 years ago
Kristin Laemmert db26324b3c command/format: fix indentation
8 years ago
Martin Atkins d63c2fdd8d command: Show snippet of invalid resource addresses in import
8 years ago
Martin Atkins 27d086d8bd command: Fix TestUntaint
8 years ago
Martin Atkins 1bc10180cb command: Fix all of the "taint" command tests
8 years ago
Martin Atkins 8321c3614f command: Fix TestUntaint_module
8 years ago