Commit Graph

2447 Commits (eecbfbf2cccedfb581469ee63599c4b4abc5c60f)

Author SHA1 Message Date
Jared Baker 54866790ca
backend/s3: remove use_legacy_workflow argument
2 years ago
Daniel Schmidt 8564e934aa
Merge pull request #34699 from hashicorp/terraform-test-use-vars-within-blocks
2 years ago
Daniel Schmidt 4f23efc14e
remove unused config
2 years ago
Daniel Schmidt 5a72e696ce
check for presence and not for warnings
2 years ago
Daniel Schmidt 0529299cc3
run terraform fmt on test
2 years ago
Daniel Schmidt a4651fac4c
append diags unconditionally
2 years ago
Daniel Schmidt 57f6ce81b5
rename suite to file and make var internal
2 years ago
Daniel Schmidt 6a4ef8e2b3
fix comment
2 years ago
Daniel Schmidt 631293060b
only extract global and suite level variables once
2 years ago
Alisdair McDiarmid f9998ff2a5 configs: Remove unused *Parser.LoadValuesFile
2 years ago
Daniel Schmidt 5bed43c16d
remove whitespace
2 years ago
Daniel Schmidt e57368045c
fix implementation of variable checking
2 years ago
Daniel Schmidt df3ee21d82
extract global and suite-level variables before configuring providers
2 years ago
Daniel Schmidt 697e0d1d9e
refactor variable extraction
2 years ago
Liam Cervante b3abff5750
stacks: check providers blocks in components during validatation (#34707)
2 years ago
Liam Cervante bced645a4d
stacks: call terraform.Validate on stack component configs (#34705)
2 years ago
Liam Cervante c46515c5da
stacks: add support for external providers to validate context (#34701)
2 years ago
Liam Cervante 2472f7c773
stacks: fix flaky tests (#34708)
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
Alisdair McDiarmid 48148eda5f
Merge pull request #34687 from hashicorp/alisdair/stackeval-hook-replace-action-counts
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 64b311d53a
stacks: apply sensitive marks to outputs from components (#34684)
2 years ago
Liam Cervante f0b61090a2
Move the testing MockProvider into a dedicated shared package (#34681)
2 years ago
Alisdair McDiarmid 06723d3d4b stackeval: Add support for replace actions to hook
2 years ago
Martin Atkins fde6277565 stackruntime: Pass ExperimentsAllowed into stackeval for apply
2 years ago
James Bardin 084bce65dc
Merge pull request #34683 from hashicorp/jbardin/detect-unknown-provider-functions
2 years ago
James Bardin 336145c384 update diagnostic message
2 years ago
James Bardin bac2f892c6 more helpful provider function diagnostics
2 years ago
Liam Cervante 07f6621091
stacks: include resources in state when calculating required providers (#34645)
2 years ago
CJ Horton 7a37c393a0
Merge pull request #34678 from hashicorp/radditude/standard-panics
2 years ago
CJ Horton 6e1e00ae3f standardize panic output
2 years ago
Radek Simko 0c509183d1
ci: Add test for license headers (#34624)
2 years ago
Martin Atkins a77d351ea2 plugin+plugin6: Don't panic if ProviderMeta not populated
2 years ago
Liam Cervante 58289db4a9
terraform test: use platform independent path functions (#34666)
2 years ago
Martin Atkins e6665c4f43 stackeval: Basic support for deferred-change propagation
2 years ago
Martin Atkins 2e6cf0a518 terraform: Callers can force all actions to be deferred
2 years ago
Martin Atkins 823aa8e4f3 terraform: Handle partial-expanded resources during planning
2 years ago
Martin Atkins a0b0996ad1 terraform: Evaluator returns DynamicVal for partial-expanded resource
2 years ago
Martin Atkins 64f7b6992f terraform: BuiltinEvalContext function eval in partial-expanded module
2 years ago
Martin Atkins d574082caf terraform: nodeExpandModule must check experiments on moduleCtx
2 years ago
Martin Atkins 3e2b6ffec8 core: Resource nodes aware when unknown_instances experiment is on
2 years ago
Martin Atkins 47fd5e3e35 terraform: Expose a shared deferring.Deferred object
2 years ago
Martin Atkins db07b905e9 deferring: A new package for tracking deferred actions
2 years ago
Martin Atkins 53f00667d5 instances: Some additional commentary
2 years ago
Martin Atkins 8e02f5dd21 addrs: PartialExpandedResource module address accessors
2 years ago
Martin Atkins 67d8a5137b rpcapi+stacks: Stacks runtime can see whether experiments are allowed
2 years ago
Martin Atkins 73df33fe6e instances: Fix data race in Expander.ExpandAbsModuleCall
2 years ago
Martin Atkins e6ce1edf22 logging: Send captured panics to real stderr
2 years ago
Ansgar Mertens cd1306430b
fix(docs): Include product in relative link (#34510)
2 years ago
Liam Cervante 3475d22741
Fix nil pointer exception when planning stacks with undeclared variables (#34638)
2 years ago
Alisdair McDiarmid 55675b990a stackeval: Unmark provider config for plugin RPC
2 years ago
Martin Atkins 884e1fb2a4 terraform: Plans can be "complete" and "applyable"
2 years ago
Daniel Schmidt 9fbe6c6a13
Merge pull request #34632 from hashicorp/use-plugin-cache-for-provider-lock
2 years ago
Daniel Schmidt a08b108346
Merge pull request #34630 from hashicorp/wrap-json-in-generated-config-in-tf-function
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
Daniel Schmidt 5b29b92abe
Merge pull request #34625 from hashicorp/throw-better-error-if-import-id-is-empty-string
2 years ago
Daniel Schmidt ba043a04d5
in import-generated code represent JSON values in HCL instead of as strings
2 years ago
Daniel Schmidt 2b7c7b2745
fix panic when import id is empty string
2 years ago
Martin Atkins 34ccf284fa terraform: Further generalization of the EvalContext scope handling
2 years ago
Daniel Schmidt ccf8bb20d8
Merge pull request #34619 from DanielMSchmidt/add-is-sensitive-function
2 years ago
Daniel Schmidt cf4d99a926
if file provisioners source is null throw error instead of panic
2 years ago
Daniel Schmidt 3a77065e69
add `issensitive` function
2 years ago
Radek Simko 30aa3cb743
rpcapi: Add missing license headers & code-generation headers (#34617)
2 years ago
Liam Cervante 8522c40114
terraform test: prevent crash when mocking dynamic types (#34607)
2 years ago
Martin Atkins 89a53e9105 command/test: Fix invalid XML processing instruction
2 years ago
James Bardin a8701f6ddd provider functions return an error
2 years ago
Liam Cervante 9c39e51466
Add 'explicit configuration required' message when provider schema validation fails (#34595)
2 years ago
Martin Atkins ac5f6489c4 core: Placeholder values for input variables in partial-expanded modules
2 years ago
Martin Atkins a55b0b39de core: Placeholder values for local values in partial-expanded modules
2 years ago
Martin Atkins 507cccef76 core: Placeholder values for output values in partial-expanded modules
2 years ago
Martin Atkins 079021df1b terraform: Graph nodes can belong to partial-expanded module prefixes
2 years ago
Martin Atkins 42f012bee4 terraform: GraphWalker interface supports partial-expanded module addrs
2 years ago
Martin Atkins 641837df7b terraform: EvalContextBuiltin supports partial-expanded module instances
2 years ago
Martin Atkins 39a6f3a6db terraform: a lang.Data impl for unexpanded modules
2 years ago
Martin Atkins 3040deac66 terraform: Evaluator.StaticValidateReferences
2 years ago
HenriBlacksmith 49663bfc33
terraform fmt: add .tfmock.hcl as a supported file extension (#34580)
2 years ago
Brian Flad c7a44bfc9a
Support Private State with MoveResourceState (#34575)
2 years ago
Martin Atkins baa0f7805e terraform: Modules can opt in to allowing unknown_instances
2 years ago
Martin Atkins ae2a64a3ad terraform: count and for_each evaluation permitting unknown values
2 years ago
Martin Atkins 78e2e20157 experiments: "unknown_instances" is a current experiment
2 years ago
Martin Atkins b90b71768c terraform: EvalContext.LanguageExperimentActive
2 years ago
Martin Atkins fe87334239 terraform: Stub nodes for named values in unexpanded modules
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
James Bardin 15ead7bce7 comment/debuging cleanup
2 years ago
James Bardin 57dad8d48d apply schema marks to returned instance values
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
Martin Atkins 0994e6fbf9 stacks: The terraform.workspace attr is not available in Stacks
2 years ago
Martin Atkins 9851cd456e terraform: decide module instances using new API
2 years ago
Martin Atkins 0c3a581ff0 instances: Expander.ExpandAbsModuleCall
2 years ago
Martin Atkins d37436a39a addrs: ModuleInstance.AbsCall
2 years ago
Martin Atkins f3c48314ab addrs: AbsModuleCall.StaticModule
2 years ago
Brian Flad 3b4964270f
internal/command/jsonprovider: Remove root jsonfunction object from function output (#34536)
2 years ago
Lauren 6d9b3b2cd7 call Colorize() on CLI output
2 years ago
Martin Atkins 7d2d4dec5e stackeval: When being destroyed, component instance result comes from plan
2 years ago
Martin Atkins dcb176a557 stackeval: A Main for applying knows the plan it's applying
2 years ago
Martin Atkins c06ad051a1 stackeval: Respect inter-component dependencies during apply
2 years ago
Martin Atkins c345cde93c stackeval: Extended utilities for plan and apply testing
2 years ago
James Bardin 4d1499b559
Merge pull request #34525 from hashicorp/jbardin/unknown-errors
2 years ago
James Bardin d8a335f520 add unknown val error for MoveResourceState
2 years ago
Liam Cervante 9246b3a994
stacks: on module load convert relative paths to absolute (#34523)
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
James Bardin 105b2044d5 remove leftover debug output
2 years ago
James Bardin ef44fd604e error when UpgradeResourceState return unknown value
2 years ago
James Bardin 0b4e468de6 error when ReadResource returns unknown value
2 years ago
Brian Flad 1298fcd412
Add missing function deprecation_message to JSON output and website documentation (#34520)
2 years ago
James Bardin bc945f22eb
Merge pull request #34515 from hashicorp/jbardin/provider-function-validation
2 years ago
James Bardin 5c7b6614f5 add Validate to providerFunctionImpurePlan test
2 years ago
James Bardin a5337b3b20 remove global results table state
2 years ago
Liam Cervante 0ca03ecf08
Extend refactoring package to support cross-provider moves (#34501)
2 years ago
Liam Cervante 7d143388f3
Add support for the cross resource type move operation in the proto schema (#34480)
2 years ago
James Bardin 94d64364a4 test provider function consistency
2 years ago
James Bardin a3aa517589 store and verify provider functions calls in plan
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
Graham Davison 57ec131e80 Ignores `AccessDenied` errors when listing bucket with default prefix
2 years ago
Graham Davison 40e593ddc1 Adds constant for default workspace prefix
2 years ago
Martin Atkins 3c14eeb945 stackeval: Make some provisioners available to stack components
2 years ago
Martin Atkins 6071e06f1a tfstackdata1: DynamicValueFromTFStackData1 decodes sensitive marks
2 years ago
Alisdair McDiarmid 1d3f863f2b stackruntime: Support sensitive component inputs
2 years ago
Alisdair McDiarmid fc75657113 terraform: Support sensitive input variable values
2 years ago
Alisdair McDiarmid e4b319401e stacksruntime: Add sensitive outputs tests
2 years ago
Martin Atkins 3961c18420 stackeval: Return an error if a module contains a provider config
2 years ago
Martin Atkins a51c034cc3 stackeval: Include component configurations in our static walks
2 years ago
Martin Atkins a3cd4a11ce stackeval: Use relative, slashy paths in module-related diagnostics
2 years ago
Martin Atkins a4d61733f6 stackplan: Include extra info in raw component instance plan
2 years ago
Martin Atkins 25a514f846 stackeval: Populate planned component instance more thoroughly
2 years ago
Martin Atkins 524da4f278 stackeval: Applyable objects have a set of required components
2 years ago
Martin Atkins 5bfdb12098 stackaddrs: Absolute references and referenceables
2 years ago
Martin Atkins 00761a9f70 stackeval: ApplyChecker is now Applyable
2 years ago
Martin Atkins 11bb10ba72 stackeval: Find references in arbitrary expressions and bodies
2 years ago
Martin Atkins 8cb51f415b collections: go-cmp helpers for the collection types
2 years ago
Martin Atkins 306b9008c4 stackeval: Clean some debug junk in ComponentInstance
2 years ago
Liam Cervante d2502265dc
removed: child modules should be removed if they are within a removed module (#34487)
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