Commit Graph

163 Commits (bf396b5f1b89536725a3be35d7500a17cb1045b3)

Author SHA1 Message Date
Pam Selle 8d8389da74 Add diff test with a sensitive change
6 years ago
Pam Selle e4e16ccbd3 Rebase fix
6 years ago
Pam Selle 61c78fd3b9 Add case to compactValueStr not to expose sensitive vals in diagnostics
6 years ago
Pam Selle bc55b6a28b Use UnmarkDeepWithPaths and MarkWithPaths
6 years ago
Pam Selle 896d277a69 If the path is empty, we should not be marking the path
6 years ago
Pam Selle 84d118e18f Track sensitivity through evaluation
6 years ago
Alisdair McDiarmid 09d8355f43 command: Add experimental concise diff renderer
6 years ago
Alisdair McDiarmid ba9baac36d command: Add tests for format.OutputChanges
6 years ago
Alisdair McDiarmid 3547f9e368 format: Don't wrap space-prefixed diag details
6 years ago
FGtatsuro b6cf1c3673 Use valid heredoc begin symbol in diff output.
6 years ago
Alisdair McDiarmid c87c0a9d2a command/format: Fix empty overlap diagnostics
6 years ago
Martin Atkins 31a4b44d2e backend/local: treat output changes as side-effects to be applied
6 years ago
Kristin Laemmert 27a794062e Mildwonkey/command tests (#24535)
6 years ago
Alisdair McDiarmid a23c3e3c81 command/format: Fix multi-line diagnostic output
6 years ago
James Bardin a8b9547e0d fixup states.Resource change throughout packages
6 years ago
James Bardin e13eecbc5b finish provider ModuleInstance replacement
6 years ago
Kristin Laemmert 47a16b0937
addrs: embed Provider in AbsProviderConfig instead of Type
6 years ago
Kristin Laemmert 927999a820
command/state show: use configured provider (#24027)
6 years ago
Kristin Laemmert 80ab551867
terraform: use addrs.Provider as map keys for provider schemas (#24002)
6 years ago
Martin Atkins 8b511524d6
Initial steps towards AbsProviderConfig/LocalProviderConfig separation (#23978)
6 years ago
Kristin Laemmert 6541775ce4
addrs: roll back change to Type field in ProviderConfig (#23937)
6 years ago
Kristin Laemmert 92f427779d
command/show: fix issue with show and aliased provider (#23848)
6 years ago
Martin Atkins c06675c616 command: New -compact-warnings option
6 years ago
Pam Selle d8c31a1efa
Merge pull request #23581 from hashicorp/pselle/show-panic-23377
6 years ago
Kristin Laemmert e3416124cc
addrs: replace "Type string" with "Type Provider" in ProviderConfig
6 years ago
Pam Selle 2b8e876bdb Don't inspect an empty set, return false
6 years ago
tmshn fcc1a76d5e make plan-diff format a bit more dry
6 years ago
Simon Brady 7a9fa93724 command/plan: Fix panic in plan output with string containing null and whitespace (#23102)
7 years ago
Thayne McCombs a895a42f85 command/format: fix missing elements at the end of lists in diffs
7 years ago
Martin Atkins 7db2825646 command/format: multi-line rendering for unchanged strings
7 years ago
Martin Atkins d0cbbb6a00 command/format: Remove defunct "Plan" type and associated symbols
7 years ago
Martin Atkins 39e609d5fd vendor: switch to HCL 2.0 in the HCL repository
7 years ago
James Bardin 345dfaccb6 Account for deposed instances in show command, adding the details for
7 years ago
Jon Burgess c0b1220a92 Fixes #21907
7 years ago
Radek Simko 12f7ac1374
command/format: Reduce extra whitespaces & new lines
7 years ago
Martin Atkins 6adcc7ab73 vendor: go get github.com/zclconf/go-cty@master
7 years ago
James Bardin f79a768a4e command/format: take noop changes from lcs
7 years ago
Martin Atkins 88e76fa9ef configs/configschema: Introduce the NestingGroup mode for blocks
7 years ago
Kristin Laemmert f8a5e17d3d
command/format: improve "source" of error messages regarding missing arguments (#20907)
7 years ago
Frederic 0f1f504c22 command/format: indicate in diff when adding an attribute forces replacement
7 years ago
Martin Atkins e918fa83ec command/format: Don't panic when item removed from list of objects
7 years ago
James Bardin 0569e39788 don't try to treat "null" as json in diff output
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
James Bardin b8e53255b4 Revert "remove NormalizeObjectFromLegacySDK from diff"
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
Kristin Laemmert b9d8e96e0c
command/plan: plan output should indicate if a resource is being (#20580)
7 years ago
Martin Atkins f193b11073 command/format: Normalize before/after values before rendering
7 years ago
Kristin Laemmert 874b333962
command/format: fix an issue where data resources were not displaying (#20386)
7 years ago
Kristin Laemmert 653bb74403
command/format: include nested blocks in `terraform show` output (#20149)
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
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
Radek Simko d96f4fa77b
command/format: Ignore removal of empty strings
7 years ago
Radek Simko bc4b7cad68
command/format: Render null in dark gray (#19616)
7 years ago
Radek Simko f64978b64c
backend/local: Render CBD replacement (+/-) correctly (#19642)
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 4f2868a019
command/format: Fix rendering of attribute-agnostic diagnostics
8 years ago
James Bardin e93d69f18b more nil/known checks before val.LengthInt
8 years ago
Sander van Harmelen 4d6626b3a8 Terraform show didn’t show absolute paths
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
Martin Atkins 275a44f552 command: Reinstate object ids in the UIHook progress logs
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
Kristin Laemmert d08fe7a91f cli: format/state_test.go
8 years ago
Kristin Laemmert 14c28b8de4 cli: format/state refactor to use blockBodyDiffPrinter
8 years ago
Kristin Laemmert 8063f69e5c cli: format/state refactor for new state format
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 a43b7df282 core: Handle forced-create_before_destroy during the plan walk
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