Oleksandr Levchenkov
2758f2cfbf
fix mock provider validation ( #2140 )
...
Signed-off-by: ollevche <ollevche@gmail.com >
2024-11-20 16:45:17 +02:00
adenhuen
0e189b33f8
test: ensure test vars are not used in tf plan ( #2128 )
...
Signed-off-by: Aden Huen <aden.huen@gmail.com >
Signed-off-by: adenhuen <aden.huen@gmail.com >
Signed-off-by: Ados <aden.huen@gmail.com >
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com >
2024-11-12 17:23:54 +02:00
Arel Rabinowitz
3d4bf29c56
Add exclude flag support ( #1900 )
...
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com >
2024-11-05 10:16:00 -05:00
Martin Atkins
6707ef6ca3
Fix regression of backend reinit detection when backend schema has required arguments ( #2119 )
...
Signed-off-by: Martin Atkins <mart@degeneration.co.uk >
2024-11-04 14:23:32 -05:00
Andy Hayes
7215ee2ed8
Adds warning if tests don't provide valid variable ( #2057 )
...
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io >
2024-10-15 09:20:11 +01:00
Martin Atkins
8b0b5b271b
command/init: Support static eval for backend config migration check
...
The "backendConfigNeedsMigration" helper evaluates the backend
configuration inline to compare it with the object previously saved in the
.terraform/terraform.tfstate file.
However, this wasn't updated to use the new "static eval" functionality
and so was treating any references to variables or function calls as
invalid, causing a spurious "backend configuration changed" error when
re-initializing the working directory with identical backend configuration
settings.
Signed-off-by: Martin Atkins <mart@degeneration.co.uk >
2024-10-09 09:27:11 -07:00
Andy Hayes
de69070b02
Adds prompt for missing static variables ( #2047 )
...
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io >
2024-10-07 18:30:42 +01:00
Viktor Szépe
bb63574f09
Fix typos ( #1954 )
...
Signed-off-by: Viktor Szépe <viktor@szepe.net >
2024-09-17 12:04:30 +02:00
Nathan Baulch
9b7bec31b4
Another batch of minor typos ( #1953 )
...
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com >
2024-09-09 07:51:39 -04:00
Burak Şen
7a02fad996
Fix repetitive diagnosis output in init response ( #1890 )
...
Signed-off-by: buraksenn <buraksenb@gmail.com >
2024-09-05 07:36:18 -04: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
Andrew Hayes
131c2cadda
Adds multi line support to console ( #1875 )
...
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io >
2024-08-02 10:21:44 +01:00
Syasusu
1c0cb13bf7
feat: Add support for tofu.workspace which will be resolved in the same way as terraform.workspace ( #1305 )
...
Signed-off-by: Syasusu <syasusu@163.com >
2024-08-01 08:14:34 -04:00
Siddhartha Sonker
579d74c409
Add -show-sensitive flag to tofu plan, apply, state-show and output commands ( #1554 )
...
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com >
2024-07-22 10:58:57 +01: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
Andrew Hayes
7e706fa1a7
Adds provider function to tofu scheme/metadata commands ( #1753 )
...
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io >
2024-07-01 16:41:27 +01:00
Christian Mesh
8f8e0aa4aa
Static Evaluation Base, Module Sources, Backend Config ( #1718 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com >
Signed-off-by: Christian Mesh <cristianmesh1@gmail.com >
Co-authored-by: James Humphries <James@james-humphries.co.uk >
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com >
2024-06-24 09:13:07 -04:00
Siddhartha Sonker
9138470a67
Allowed variable to pass inside variables block ( #1488 )
...
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com >
2024-06-03 18:44:05 +05:30
Alex Ott
522a859cf0
Write state using compact JSON representation ( #1647 )
...
Signed-off-by: Alex Ott <alexott@gmail.com >
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com >
2024-05-21 15:04:10 -04:00
Siddhartha Sonker
6065bc593f
Fixed tofu test when module has no resource ( #1409 )
...
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com >
2024-05-06 14:49:42 +02:00
Siddhartha Sonker
de30707b6b
Fix for tofu init failure when test have spaces in their name ( #1489 )
...
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com >
Signed-off-by: Christian Mesh <christianmesh1@gmail.com >
Co-authored-by: Christian Mesh <christianmesh1@gmail.com >
2024-04-25 11:11:38 -04:00
Sanskruti Shahu
08f9a740ac
Added support to use .tfvars files from tests folder ( #1386 )
...
Signed-off-by: sanskruti-shahu <sanskruti.shahu@harness.io >
2024-03-29 08:44:27 -04:00
Siddhartha Sonker
accfe1c412
Allow referencing output from test run in local variables block (tofu test) ( #1254 )
...
Signed-off-by: siddharthasonker95 <158144589+siddharthasonker95@users.noreply.github.com >
2024-02-19 10:18:56 +00:00
Christian Mesh
249ed42fb1
Run block variable references ( #1129 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com >
2024-01-17 06:57:14 -05:00
Ronny Orot
1aa92856b1
Fix test command teardown order ( #1043 )
...
Signed-off-by: Ronny Orot <ronny.orot@gmail.com >
2023-12-20 16:38:42 +02:00
Christian Mesh
78464f251a
Add a warning when multiple likely forks of a provider are detected ( #1009 )
...
Signed-off-by: Christian Mesh <christianmesh1@gmail.com >
2023-12-14 12:21:16 -05: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
James Humphries
9c24b6183a
Revert PRs that introduced propogating contexts ( #835 )
...
Co-authored-by: Dmitry Kisler <admin@dkisler.com >
2023-11-08 21:09:14 +00:00
Marcin Wyszynski
772ac1fc35
Pass context to all statemgr.Locker operations ( #789 )
...
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com >
2023-10-25 14:22:11 +02:00
RLRabinowitz
8967cdcee7
Remove all Terraform Cloud mentions in STDOUTs in the codebase ( #703 )
2023-10-12 12:07:16 +01:00
Elbaz
86866bff0c
add e2e test to cover the panic case of unknown conditional with sensitive ( #661 )
2023-10-05 15:04:51 +03: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
Dmitry Kisler
a127607a85
Rename terraform to tofu in GoString method and docstrings ( #576 )
...
Signed-off-by: Dmitry Kisler <admin@dkisler.com >
2023-09-26 19:09:27 +02:00
Yaron Yarimi
487d9bc6a4
Rename multiple packages to OpenTofu (addrs, backend, command) ( #506 )
2023-09-21 15:38:46 +03:00
Yaron Yarimi
90f7e5275f
Rename multiple packages to OpenTofu (depsfile, genconfig, getmodules) ( #499 )
2023-09-20 17:05:24 +03:00
Yaron Yarimi
c8acedd885
Rename github.com/placeholderplaceholderplaceholder/opentf to github.com/opentofu/opentofu ( #461 )
2023-09-20 14:35:35 +03:00
Elbaz
4d9404a59e
Fix opentf test crash on nil output ( #267 )
...
Co-authored-by: Elbaz <eran.elbaz@env0.com >
2023-09-06 13:40:12 +03:00
Elbaz
20aa339579
Merge remote-tracking branch 'origin/main' into chore-add-is-files-sorted-test
...
# Conflicts:
# internal/command/test_test.go
2023-09-05 15:15:35 +03:00
Elbaz
c676d74fc6
Add Tests
...
Signed-off-by: Elbaz <eran.elbaz@env0.com >
2023-09-03 16:54:24 +03:00
RLRabinowitz
b08933aeb1
Normalise lines in ned of test files
...
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com >
2023-09-03 16:37:05 +03:00
RLRabinowitz
650caafafb
Test: Refresh-only and refresh:false should fail validation
...
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com >
2023-09-03 13:20:21 +03:00
RLRabinowitz
08536a74a2
Add test cases for opentf test - refresh-only, and making sure target actually runs a single target
...
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com >
2023-09-03 13:20:21 +03:00
Elbaz
b08614ef11
Merge pull request #215 from opentffoundation/another-test-to-make-sure-runtime-checks-are-fine-with-test
2023-08-29 14:55:48 +03:00
Elbaz
abf03204d8
expect_runtime_check_pass_command_plan_expected
2023-08-29 12:20:34 +03:00
Elbaz
a444b7e6f2
expect_runtime_check_fail_command_plan
2023-08-29 11:17:42 +03:00
Elbaz
94400dfebb
expect_runtime_check_pass_with_expect
2023-08-29 11:02:42 +03:00
RLRabinowitz
e23eea6d82
Merge pull request #211 from opentffoundation/remote-terraform-from-tests
...
Remove `terraform` from test files and directories
2023-08-29 10:45:43 +03:00
Elbaz
a330254be2
another case
2023-08-29 10:19:26 +03:00
RLRabinowitz
a0af99fe99
Remove terraform test file names in internal/command tests
2023-08-28 17:22:36 +03:00