Commit Graph

243 Commits (580d3afb34633ee558b54a5604ca89fd032ca2ee)

Author SHA1 Message Date
Mutahhir Hayat e20891ac1d add tests for local values through data sources
2 years ago
Liam Cervante 9b95898f63
stacks: emit events for deferred actions (#35325)
2 years ago
Liam Cervante 1bb78c14c2
deferred actions: always enable deferred actions in stacks (#35321)
2 years ago
Liam Cervante fc390038f3
stacks: add tests for and refactor steps when a provider can't be configured (#35294)
2 years ago
Liam Cervante eeb2c53385
stacks: remove wildcard key from computed instances (#35284)
2 years ago
Liam Cervante dc06717f69
stacks: add support for unknown for_each expressions in providers (#35267)
2 years ago
Liam Cervante 1e9a186059
stacks: return dynamic types when referencing partial components (#35254)
2 years ago
Liam Cervante 7096ec85cc
stacks: Enable resource deferrals within stack tests (#35168)
2 years ago
Daniel Schmidt 59ead5356f
stacks: update RPC APIs with deferral information (#35125)
2 years ago
Alisdair McDiarmid c8eec89c3d
Merge pull request #35247 from hashicorp/alisdair/rpcapi-stop
2 years ago
Liam Cervante b5d6b13b3b
stacks: convert sourcebundle source into directory for config SourceDir field (#35245)
2 years ago
Martin Atkins 5003af8335 stackeval: If context is cancelled, ask provider instances to stop
2 years ago
Alisdair McDiarmid 39373cc0d6 stackeval: Stop operations on context cancellation
2 years ago
Martin Atkins 9448845e91 stackeval: Improve coverage of namedPromiseReporter impls
2 years ago
Martin Atkins a4d19a8d13 stackeval: Stack.ProviderByLocalAddr must memoize its results
2 years ago
Liam Cervante 7a8ffff66e
stacks: Fix unknown provider values crashing validation phase (#35155)
2 years ago
Daniel Schmidt 2c65affe05
stacks: add comments to tests
2 years ago
Daniel Schmidt b1e50d0475
chore: fix comment
2 years ago
Daniel Schmidt 664bb21738
stacks: add comment
2 years ago
Mutahhir Hayat 6bbc8cdc76 Add more tests for local values
2 years ago
Mutahhir Hayat 2667a0f2c3 cleanup comments
2 years ago
Mutahhir Hayat 5e12bdf048 Stack evaluation should also visit local values when walking the stack
2 years ago
Mutahhir Hayat be317d4d3a Make Stack and Stack config aware of local values
2 years ago
Mutahhir Hayat 6554ce6bfd Add planning test to test for locals usage
2 years ago
Mutahhir Hayat 129d58fed3 Create local value structs, including config and tests
2 years ago
Mutahhir Hayat d695f8197c Add local values test
2 years ago
Daniel Schmidt 3267718d3d
stacks: support unknown for_each on embedded stacks
2 years ago
kmoe b74715e5fb
stacks: fix invalid filename (#35111)
2 years ago
Daniel Schmidt 35f44b01f0
stacks: fix comment and add assertion for diagnostics
2 years ago
Daniel Schmidt aeb5b47723
stacks: remove unused test case
2 years ago
Daniel Schmidt f847360a40
stacks: component.CheckInstances now reports on for each value diagnostics
2 years ago
Daniel Schmidt c370e5e71d
stacks: use more precise name for variable
2 years ago
Daniel Schmidt 1afc9789ef
stacks: use UnknownForEachRepetitionData for instance map repetition data in for_each
2 years ago
Daniel Schmidt 91a18a6b30
stacks: fix typo
2 years ago
Daniel Schmidt 7d0c4cfc4d
stacks: early exit on invalid for_each values for components
2 years ago
Daniel Schmidt d1168ffa62
stacks: return instance value for wildcard component instances
2 years ago
Daniel Schmidt 6f95225a91
stacks: handle unknown dynamic values
2 years ago
Daniel Schmidt 3cbfd39721
stacks: validate unknown component for_each type
2 years ago
Daniel Schmidt 3a7150b27e
stacks: handle unknown values in component for_each
2 years ago
Martin Atkins 30e2fd6525 Handle marks a little more consistently
2 years ago
Nick Fagerlund 4d46cc81e3 Fix several deferred actions tests by setting DeferralAllowed
2 years ago
Nick Fagerlund 2b4147e0ba Add DeferralAllowed to stackeval.PlanOpts (temporary)
2 years ago
Nick Fagerlund d5be799cb9 End unknown_instances language experiment, in favor of whole-plan option
2 years ago
Alisdair McDiarmid f409639934
Merge pull request #34765 from hashicorp/alisdair/stack-root-input-variable-defaults
2 years ago
Alisdair McDiarmid f3ec86b17b stackruntime: Treat unset and null equally
2 years ago
Alisdair McDiarmid 0fe26468cd stackruntime: Apply defaults to root variables
2 years ago
CJ Horton 5a750561e6 round-trip check results through stack plans
2 years ago
Daniel Schmidt 49ad27f1c9
Merge pull request #34737 from hashicorp/stacks-for-each
2 years ago
Nick Fagerlund c9c24706aa
Merge pull request #34741 from hashicorp/nf/feb24-provider-addrs-in-statuses
2 years ago
Daniel Schmidt 2a0962328d
stacks: make error message more precise
2 years ago
Daniel Schmidt 8da61e2d20
stacks: reword for_each error message
2 years ago
Daniel Schmidt 217879e510
stacks: make component for_each more robust
2 years ago
Liam Cervante cec4b7b74c
stacks: validate providers based on types instead of local names (#34735)
2 years ago
Nick Fagerlund f58c71e77c Stacks: Update expectations in TestTerraformHook
2 years ago
Nick Fagerlund 7703a5aead Stacks: Add ProviderAddr field to ResourceInstanceStatusHookData
2 years ago
Nick Fagerlund 94ea534e40 Refactor terraform.Hook to use a resource-identifying wrapper struct
2 years ago
Liam Cervante 31a7fa88d5
stacks: validate provider configurations during static analysis (#34730)
2 years ago
Alisdair McDiarmid 1459825e53
Merge pull request #34725 from hashicorp/alisdair/configs-sourcebundle-parser
2 years ago
Alisdair McDiarmid 2c22c213e9 stackeval: More robust absolute source addrs
2 years ago
Alisdair McDiarmid 7a043fe54a stackeval: Another module source test case
2 years ago
Alisdair McDiarmid 7d956bbc11 stackeval: Fix module loader source addr building
2 years ago
Martin Atkins a45d4467f1 stackeval: Don't fail when data resource is removed
2 years ago
Liam Cervante b2cc7dbadf
stacks: validate the types of input variables during validation (#34722)
2 years ago
Liam Cervante 68fd15dfdd
stacks: expand reference scope of static validations (#34721)
2 years ago
Liam Cervante 831630fabe
stacks: the plan function should stop on validation errors (#34720)
2 years ago
Alisdair McDiarmid 97a220fb82 stacks: Use source bundle aware config parser
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 2472f7c773
stacks: fix flaky tests (#34708)
2 years ago
Alisdair McDiarmid 48148eda5f
Merge pull request #34687 from hashicorp/alisdair/stackeval-hook-replace-action-counts
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
Liam Cervante 07f6621091
stacks: include resources in state when calculating required providers (#34645)
2 years ago
Martin Atkins e6665c4f43 stackeval: Basic support for deferred-change propagation
2 years ago
Martin Atkins 67d8a5137b rpcapi+stacks: Stacks runtime can see whether experiments are allowed
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
Martin Atkins 0994e6fbf9 stacks: The terraform.workspace attr is not available in Stacks
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
Liam Cervante 9246b3a994
stacks: on module load convert relative paths to absolute (#34523)
2 years ago
Liam Cervante 7d143388f3
Add support for the cross resource type move operation in the proto schema (#34480)
2 years ago
Martin Atkins 3c14eeb945 stackeval: Make some provisioners available to stack components
2 years ago
Alisdair McDiarmid 1d3f863f2b stackruntime: Support sensitive component inputs
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 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 306b9008c4 stackeval: Clean some debug junk in ComponentInstance
2 years ago
James Bardin 2574b899e7
Merge pull request #34385 from hashicorp/jbardin/provider-functions-impl
2 years ago