Commit Graph

758 Commits (a8b126aeffdd1876da51e59a7cc685ad030e86d3)

Author SHA1 Message Date
James Bardin 2ffbd0eb4e remove old refactoring comments
2 years ago
James Bardin 0b8fbfe323 ignore unexported state field in comparison
2 years ago
James Bardin 16231373a4 update changes in command pkgs
2 years ago
James Bardin bc750192e4 POC for always using decoded changes in core
2 years ago
James Bardin 04b442d419 allow slashes in git url parameters
2 years ago
Daniel Schmidt 3b95a5f6b1
fix formatting
2 years ago
Daniel Schmidt 8e1f02843d
jsonformat: update tests
2 years ago
Daniel Schmidt b9933789aa
jsonformat: render deferred diff with no current changes message
2 years ago
Daniel Schmidt c619cd2536
improve wording
2 years ago
Daniel Schmidt a00e015e24
jsonformat: render different no changes message on deferred actions
2 years ago
Daniel Schmidt 4afb3b2b48
jsonformat: render deferred actions
2 years ago
Liam Cervante 471bddf3ba
json plan: update resource index and import ids to support unknown values (#35518)
2 years ago
Liam Cervante 4f62fcac53
init: fix invalid + duplicate required provider blocks crashing (#35533)
2 years ago
Liam Cervante 3ce9e517ae
fix flaky test in views package (#35469)
2 years ago
James Bardin fcfbd85aa5 add suggestion to run `terraform providers`
2 years ago
Niklas Rosenstein 50463774b0 Fix and clarify error message when -plugin-dir can't be saved to workspace directory
2 years ago
Martin Atkins 71d14e78fd lang: Experimental "ephemeralasnull" function
2 years ago
James Bardin 3bf06b18fc update helptext and docs
2 years ago
James Bardin 3875ea3656 add -lock-file flag to providers mirror command
2 years ago
James Bardin e57d8add35 Check lock file diags in mirror command
2 years ago
Martin Atkins 9dd16a7fba command: "terraform apply" accepts variable values with saved plan
2 years ago
Martin Atkins 6f84623cb6 terraform: Initial partial support for ephemeral values
2 years ago
James Bardin a38be7d174
Merge pull request #35271 from hashicorp/jbardin/render-uknown-block
2 years ago
James Bardin 6b19b9e82a render entirely unknown blocks in the plan output
2 years ago
Brandon Croft 3a5221269b
Revert "Add Warning for Deprecated Modules in `Init` (Second Revision)"
2 years ago
kmoe 1e2d4a2ecc
lang: stabilise templatestring func experiment (#35224)
2 years ago
Mark DeCrane 4bd790d8a4
Merge pull request #35231 from hashicorp/TF-12601/deprecated-module-version-warns-rev2
2 years ago
MicahKimel 3258744166
Remove invalid warning during cleanup phase (#35172)
2 years ago
Mark DeCrane 1e7c29243e Added Extra field for TFC diagnostic processing
2 years ago
Sebastian Rivera 7012371d1f
Merge pull request #35176 from hashicorp/sebasslash/tf-15302_modifiable-snapshot-interval
2 years ago
Sebastian Rivera 52c7dfceb4 Add unit tests for state persist interval env var
2 years ago
Sebastian Rivera a72d02135b Define StatePersistInterval as command meta field
2 years ago
Liam Cervante 48fc2d3ac7
terraform test: Disallow version constraints within test files (#35161)
2 years ago
Brandon Croft 716fcce239
chore: add command ctx to GetRootOutputValues
2 years ago
Liam Cervante b718c55b13
deferred actions: include deferred resources within JSON plan output (#35065)
2 years ago
Liam Cervante 14418bd198
terraform test: move override evaluation into expander (#35030)
2 years ago
Nick Fagerlund 40b6f21b3d
Merge pull request #35050 from hashicorp/rebrand-hcp-terraform
2 years ago
Sebastian Rivera c04d32dc26 Inject appname to backend migration prompts
2 years ago
Sebastian Rivera 015f795ff0 Rebrand Terraform Cloud to HCP Terraform
2 years ago
Liam Cervante 448775102c
terraform test: Push evaluation of variables to as late as possible (#35014)
2 years ago
Liam Cervante 6963c54bec
terraform test: don't remove sensitive marks from inputs (#35021)
2 years ago
Martin Atkins 30e2fd6525 Handle marks a little more consistently
2 years ago
Martin Atkins 5a944133e6 command/jsonstate: Reject unsupported marks
2 years ago
UKEME BASSEY a4415c030a making json data more useful for client consumption
2 years ago
UKEME BASSEY 7fb13b8868 fixing tests
2 years ago
UKEME BASSEY c7bbc09631 move all command args from command/init to args/init
2 years ago
UKEME BASSEY ce7824f905 add interrupt error to the diags so each component becomes responsible for rendering the errors
2 years ago
UKEME BASSEY 0ea25e3b40 fixing tests internal/command/init, view and argumento
2 years ago
UKEME BASSEY ba8386b8a2 json does not support interactive prompt so dont allow setting of both -migrate-state and -json options
2 years ago
UKEME BASSEY ea8d0869d8 convert all logs to be view type exclusive for human or json format
2 years ago
UKEME BASSEY 370a471ecb fix json -help display and failing tests
2 years ago
UKEME BASSEY 26f01d699a add test for -json support
2 years ago
UKEME BASSEY a3f3b64e4c add -json to tf init
2 years ago
UKEME BASSEY 7709db45dc add init view test
2 years ago
UKEME BASSEY 14c53f74f2 add init view for json and human type view
2 years ago
Liam Cervante 924958bce0
plan renderer: ensure JSON strings are completely JSON (#34959)
2 years ago
Martin Atkins c1342f4f6a terraform test: Include test case execution time in JUnit XML
2 years ago
Martin Atkins c8611b51d7 terraform test: JUnit XML output sets testcase classname
2 years ago
Martin Atkins 14b08c3745 terraform: Move variable validation into its separate node type
2 years ago
Nick Fagerlund dc9a13a975 Catch a missing err check in apply command
2 years ago
Nick Fagerlund 1781c8e8e9 Experimental `-allow-deferral` flag for enabling deferred actions on CLI
2 years ago
Craig Sloggett f20b055618
Prevent duplicate error messages for unset environment variables
2 years ago
Craig Sloggett b53db4ef14
Ensure environment variables are set when interpolating rawPath
2 years ago
Craig Sloggett 302c6deddc
Interpolate environment variables when configuring dev_overrides
2 years ago
Martin Atkins 58b48f4bab provider/terraform: Use new convention for function names
2 years ago
Martin Atkins dbde17b535 terraform console: Multi-line entry support
2 years ago
Liam Cervante c6ff573180
Include provider functions in scope used to evaluate test assertions (#34825)
2 years ago
Martin Atkins 88cb4aeea3 backendrun: Separate the types/etc for backends that support operations
2 years ago
Martin Atkins 545980d664 langrefs: Separate package for expression reference analysis
2 years ago
Martin Atkins 5f2eab6944 providerreqs: Provider requirement/version types in their own package
2 years ago
Martin Atkins 66bec6c3c7 command: TestWorkspace_deleteWithState uses modern state format
2 years ago
Martin Atkins 06f51dbe04 command/workdir: Model the "backend state" file format
2 years ago
Martin Atkins 1358245617 dependencies: Remove all non-legacy uses of hashicorp/go-multierror
2 years ago
thirdkeyword 8284cde302 remove repetitive words
2 years ago
Mark DeCrane 57d2802053
Merge pull request #34746 from hashicorp/modify-dev-override-warn-with-backend
2 years ago
Mark DeCrane b83275f05d chore: remove extra newline char
2 years ago
Mark DeCrane 51ae7d32a7 fix: check for local operations, separate warning for remote execution
2 years ago
Mark DeCrane 9580ee27f9 chore: add remote backend specfic warnings to dev override warning
2 years ago
Nick Fagerlund c9c24706aa
Merge pull request #34741 from hashicorp/nf/feb24-provider-addrs-in-statuses
2 years ago
James Bardin dada9d683e
Merge pull request #34740 from hashicorp/jbardin/render-string-null-changes
2 years ago
Nick Fagerlund ccab5f1e55 Rename some UiHook tests for easier ad-hoc runs
2 years ago
Nick Fagerlund 94ea534e40 Refactor terraform.Hook to use a resource-identifying wrapper struct
2 years ago
Nick Fagerlund d81a546e55 Lints: hook_count_test, "redundant type from slice composite literal"
2 years ago
Martin Atkins 573c2db658 provider/terraform: Terraform-specific encoding functions
2 years ago
James Bardin bdd5a2cd33 try to render some empty string -> null changes
2 years ago
Daniel Schmidt 8564e934aa
Merge pull request #34699 from hashicorp/terraform-test-use-vars-within-blocks
2 years ago
Daniel Schmidt 0529299cc3
run terraform fmt on test
2 years ago
Liam Cervante c46515c5da
stacks: add support for external providers to validate context (#34701)
2 years ago
Daniel Schmidt 7ae7a203d8
test: allow using global variables in suite-level variable definitions
2 years ago
Liam Cervante 82361afd73
plan rendering: fix truncation of very large numbers (#34702)
2 years ago
Daniel Schmidt adf008d489
adjust tests to new implementation
2 years ago
Daniel Schmidt 19f9bdac14
handle multi-line string diffs correctly
2 years ago
Daniel Schmidt a64df71152
fix comment
2 years ago
Daniel Schmidt 1531fee472
clarify comment
2 years ago
Daniel Schmidt 2a625b75a4
handle reordering explicitly
2 years ago
Daniel Schmidt 31bd2b5be0
plan: compare individual elements if list is same length
2 years ago
Liam Cervante f0b61090a2
Move the testing MockProvider into a dedicated shared package (#34681)
2 years ago
Martin Atkins 884e1fb2a4 terraform: Plans can be "complete" and "applyable"
2 years ago
Daniel Schmidt 91ea23aee5
remove outdated comment
2 years ago
Daniel Schmidt 14feb738a7
update comment
2 years ago
Daniel Schmidt 472a07ad6e
fix typo
2 years ago
Daniel Schmidt be262b52d7
make using the plugin cache opt-in
2 years ago
Daniel Schmidt f720a060ff
use plugin cache for provider lock across for all platforms
2 years ago
Daniel Schmidt 2c98e6a347
improve provider lock speed by using cache
2 years ago
Martin Atkins 89a53e9105 command/test: Fix invalid XML processing instruction
2 years ago
HenriBlacksmith 49663bfc33
terraform fmt: add .tfmock.hcl as a supported file extension (#34580)
2 years ago
James Bardin c4a2f74054
Merge pull request #34567 from hashicorp/jbardin/handling-instance-value-marks
2 years ago
James Bardin 8994e914b7 add sensitive attributes to test json output
2 years ago
James Bardin 8655b08b19 fix sensitive_attributes in test
2 years ago
Liam Cervante 9658f9df6b
mocking overrides: default to concrete empty object when values are missing (#34563)
2 years ago
Liam Cervante 430970c02b
terraform test: Fix crash when file level variables reference variables. (#34531)
2 years ago
Brian Flad 3b4964270f
internal/command/jsonprovider: Remove root jsonfunction object from function output (#34536)
2 years ago
Martin Atkins 4a0d06c13e terraform test: Report skipped runs in JUnit XML output
2 years ago
Martin Atkins b43ddd8ff6 terraform test: Experimental JUnit XML reporting
2 years ago
Brian Flad 1298fcd412
Add missing function deprecation_message to JSON output and website documentation (#34520)
2 years ago
James Bardin b3c5590f01
Merge pull request #34450 from hashicorp/jbardin/provider-functions-json-schema
2 years ago
James Bardin 2e74fec583 add optional Summary field to function json
2 years ago
Nick Fagerlund 9d7737b2fe
Merge pull request #34447 from hashicorp/nf/dec23-grpc-metadata-cloudplugin
2 years ago
Nick Fagerlund ff62192819 Adjust CloudPluginConfig doc comments
2 years ago
Liam Cervante 7e18b1183d
Add test verifying issue #34476 has been fixed (#34478)
2 years ago
Nick Fagerlund 1a492b9dbb Add test for (CloudPluginConfig).ToMetadata()
2 years ago
Nick Fagerlund c398d0340f Catch a missing assign-after-append
2 years ago
Nick Fagerlund 7a1c49c61d Append cloud plugin config metadata in plugin client requests
2 years ago
Nick Fagerlund e1f0165693 Cloud command: Use cloud backend to find plugin config and service URLs
2 years ago
James Bardin 6553e55dfa marshal provider functions into the json schemas
2 years ago
James Bardin a74c847656 test MarshalProviderFunctions
2 years ago
James Bardin 8c41a1e036 MarshalProviderFunctions
2 years ago
James Bardin d7a1ebb1b7 add special cases for jsonfunction
2 years ago
Jamie Finnigan 05b0bdac99
adopt hashicorp/cli fork of mitchellh/cli (#34429)
2 years ago
kmoe 8f3aa0e099
jsonformat: render forget-only attr changes as no-op (#34403)
2 years ago
James Bardin a9cc3baf1a ensure unmanaged plugins have an address
2 years ago
Martin Atkins 17f420102f states: Local values no longer live in state
2 years ago
Martin Atkins b0b8d4aa6f states: Only track root module output values
2 years ago
Liam Cervante 5cbf7c5f96
Add docs for automatic var files in test directories (#34349)
2 years ago
Nick Fagerlund d2e07f6f03 Add `TF_CLOUD_PLUGIN_DEV_OVERRIDE` to enable cloudplugin dev
2 years ago
Nick Fagerlund 9a7fae5ff1 Typo fix
2 years ago
Kubo c98e355ca1
terraform test: Collect variables from default var file within testing directory (#34341)
2 years ago
Martin Atkins 7055650270 terraform console: Option to evaluate in a planned state
2 years ago
Martin Atkins 0f845adfdb moduletest: EvalContext lives outside of the "terraform" package
2 years ago
Liam Cervante 9ea1aa0a86
terraform test: skip destroy step for empty run blocks (#34331)
2 years ago
Liam Cervante 392e2a6e21
Fix the compile error in command/test_test.go (#34324)
2 years ago
Liam Cervante 6670ab43f7
terraform test: rearrange the order of destroy operations (#34293)
2 years ago
Liam Cervante 08eafe0f2e
Fix flaky test in command/test_test.go (#34320)
2 years ago
kmoe a718f70f85
Add removed block (#34251)
2 years ago
Martin Atkins 844b1616e8 command/graph: Simpler resource-only graph by default
2 years ago
Martin Atkins 0811395e6f states: State.AllResourceInstanceObjectAddrs should say "Managed"
2 years ago
Martin Atkins ac562eeb6f states: State.AllResourceInstanceObjectAttrs returns a set
2 years ago
Martin Atkins 13e26b60dd addrs: Adopt DeposedKey as an address type; remove states.Generation
2 years ago
Liam Cervante dedb296773
terraform test: connect mock behaviour to test framework (#34205)
2 years ago
Liam Cervante 57edb9c248
testing framework: add warnings for override blocks with invalid targets (#34181)
2 years ago