Commit Graph

23 Commits

Author SHA1 Message Date
Martin Atkins
cbfeb0fdc8 jsonconfig: Additional details about input variables
The JSON object describing an input variable can now include two additional
properties:

- "type" provides a JSON representation of the variable's type constraint,
  if one is set. Omitted if either there is no constraint declared at all
  or if it's set to "any", which are equivalent and both mean that the
  type is completely unconstrained.

  This uses the standard cty representation of a type constraint, which
  matches how OpenTofu already describes types in the provider protocol,
  in state snapshots, and in saved plan files.
- "required" directly represents whether callers are required to provide
  a value for the variable. This is technically redundant since it is
  set to true unless "default" is also set, but this avoids the need for
  consuming software to reimplement this rule and potentially allows us to
  make this rule more complicated/subtle in future if needed.

For some reason the documentation about the JSON configuration
representation did not previously mention the "variables" property at all,
so this adds documentation for both the new properties and the pre-existing
properties.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-11 09:25:30 -07:00
Jarrett Duskey
ecd4dc5c61 Add count of forgotten resources to plan and apply outputs. (#2010)
Signed-off-by: Jarrett Duskey <jarrett@duskey.io>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2025-02-24 14:53:32 -05:00
Nathan Baulch
ea558d9d4b Fix typos (#1905)
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-29 13:20:33 -04:00
James Humphries
12d9380982 Improve comparison of sensitive marks on resources, and propagate the sensitive_attributes correctly (#1640)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2024-07-09 08:42:02 -04:00
Oleksandr Levchenkov
8361438c52 remove copyright headers from website examples and lock files (#1687)
Signed-off-by: ollevche <ollevche@gmail.com>
2024-05-28 13:40:19 -04:00
namgyalangmo
cb2e9119aa Update copyright notice (#1232)
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
2024-02-08 09:48:59 +00:00
Christian Mesh
abd324ea7c Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
Janos
15bef1428a Fixes #898: Replace hashicorp and terraform references (#973)
Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2023-12-08 08:03:09 -05:00
RLRabinowitz
e0ecd2ebb3 Use registry.opentofu.org as the default registry (#379)
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
2023-10-03 10:49:38 +03:00
Elbaz
621bd071a7 rename OpenTofu testing folder (#532) 2023-09-21 18:15:32 +03:00
Marcin Wyszynski
992b5d604a Marshal plan#relevant_attributes in deterministic order (#327)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-09-07 13:36:16 +02:00
Marcin Wyszynski
0941afc75a Use our fork of the equivalence testing binary (#298)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-09-06 16:35:38 +02:00
Marcin Wyszynski
6e0908d53f Introduce a snapshot check for equivalence tests (#168)
* Introduce a snapshot check for equivalence tests

* New snapshots

* Allow overriding plan timestamp for snapshots

* Allow setting the seed externally (as an env var) for testing purposes

* Remove an equivalence test that depends on a random number
2023-08-25 13:06:29 +02:00
Elbaz
b3fac1e45e all changes 2023-08-24 10:13:27 +03:00
Elbaz
b30711ac4c updates 2023-08-23 15:55:12 +03:00
hashicorp-copywrite[bot]
325d18262e [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
The Terraform Team
c10a07f3b2 Automated equivalence test golden file update for release 1.5.0-alpha20230405. 2023-04-17 09:35:26 +00:00
Liam Cervante
9001bef525 fix the outputs of equivalence tests that were executed with the wrong version (#32547) 2023-01-20 12:53:04 +01:00
Liam Cervante
82b5cfad7e Add more equivalence tests that are testing edge cases around the new structured renderer (#32538)
* add test cases

* run equivalence tests

* delete old outputs

* drift_relevant_attributes should ignore the number attribute

* also add a test for data reads

* test destroy only
2023-01-20 09:31:11 +01:00
Liam Cervante
8e1b660b79 Update equivalence tests to counter non-deterministic output (#32366) 2023-01-04 17:36:43 +01:00
The Terraform Team
7d57d59959 Automated equivalence test golden file update for release v1.4.0-alpha20221207. 2022-12-07 15:19:56 +00:00
Liam Cervante
c1633436b8 Add more equivalence test cases (#32296) 2022-11-29 12:36:52 +01:00
Liam Cervante
37b88b33ce Rollout equivalence testing during Terraform releases and builds (#31928)
* add some basic equivalence tests and execute them in the build pipeline

* remove old file, now unused

* update terraform-equivalence-testing to v0.2.0

* add separate action

* make sure to read from hashicorp repo

* remove elevated github token where possible

* Don't need elevated token anymore

* update with official mock provider

* last change: don't need the authorization header for public repositories.
2022-11-24 14:00:08 +01:00