Commit Graph

686 Commits

Author SHA1 Message Date
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
Christian Mesh
882b942575
Provider functions in variable validations (#1689)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-05-28 11:05:34 -04:00
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
Christian Mesh
91561ca8e8
Fix GCS backend crash from encryption changes (#1618)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-05-07 09:00:14 -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
1garo
d869923103
Review and order locked struct fields (#1493)
Signed-off-by: 1garo <alevardai427@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-25 10:25:13 -04:00
Christian Mesh
535a705efe
Fix e2e test_test on darwin amd64 (#1551)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-25 08:08:14 -04:00
coderwander
c59d95ba0d
Fix struct names (#1494)
Signed-off-by: coderwander <770732124@qq.com>
2024-04-25 08:15:46 +02:00
Christian Mesh
54e3b66dc1
Provider Defined Functions direct e2e test (#1476)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Co-authored-by: James Humphries <james@james-humphries.co.uk>
2024-04-22 13:15:59 +01:00
David Sims
1f3db74281
HTTP backend user-defined headers (#1487)
Signed-off-by: David Sims <simsdj82@gmail.com>
2024-04-16 14:45:56 +02:00
Christian Mesh
d7e96665f6
Add unencrypted Method for migrations (#1458)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-12 09:38:21 -04:00
Christian Mesh
b868012192
Integrate provider functions (#1439)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-10 08:04:08 -04:00
alwayshang
fd3736bd99
chore: fix repetitive words (#1472)
Signed-off-by: alwayshang <zhanghonghao@outlook.com>
2024-04-07 13:48:13 +02:00
Oleksandr Levchenkov
d146acd2e6
fix e2e init test for windows (#1461)
Signed-off-by: ollevche <ollevche@gmail.com>
2024-04-04 17:05:17 +03:00
Syasusu
bdab86962f
feat: init and get command support json format output (#1453)
Signed-off-by: Syasusu <syasusu@163.com>
2024-04-02 12:32:37 -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
Christian Mesh
8abb707c90
Improve panic handling within go-routines (#1425)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-26 07:41:16 -04:00
Syasusu
c0f6b189b5
fix: large number are truncated in plan (#1382)
Signed-off-by: Syasusu <syasusu@163.com>
2024-03-26 07:18:59 -04:00
Christian Mesh
abb7bc4c52
Encryption e2e tests (#1389)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-13 13:06:03 -04:00
Christian Mesh
586c45fe5a
Refactor encryption configuration (#1387)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-13 10:58:52 -04:00
Karthik Nayak
311b5c37b0
Issue 248: left-over resources after tofu test should be written to a file (#1243)
Signed-off-by: kazzhar <karthik.nayak@harness.io>
2024-03-12 15:29:06 +01:00
Janos
a18e643a8d
PBKDF2 passphrase key provider (#1310)
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: James Humphries <jamesh@spacelift.io>
2024-03-11 14:24:31 +01:00
Christian Mesh
5ab6167bbf
Initial wiring of encryption through the command package (#1316)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-07 08:55:57 -05:00
Brian Vander Schaaf
783100123c
fix: test flakiness from nondeterministic waiting (#1337)
Signed-off-by: Brian Vander Schaaf <6099457+bvand@users.noreply.github.com>
2024-03-06 16:25:14 -05:00
Christian Mesh
2f5dcd5c0a
Integrate Encryption into State Backends (#1288)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-04 09:25:14 -05:00
Christian Mesh
ac3ed86617
Integrate encryption into plan serialization (#1292)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-03-04 09:00:29 -05:00
Ronny Orot
e9fe0f1118
Add support for removed block (#1158)
Signed-off-by: Ronny Orot <ronny.orot@gmail.com>
2024-02-21 10:31:44 +02: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
James Humphries
cbab4bee83
State Encryption Documentation and Partial Implementation (#1227)
Signed-off-by: StephanHCB <sbs_github_u43a@packetloss.de>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Co-authored-by: StephanHCB <sbs_github_u43a@packetloss.de>
Co-authored-by: Janos <86970079+janosdebugs@users.noreply.github.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2024-02-16 14:59:19 +00:00
James Humphries
7054dda96e
Introduced consistent ordering of aliases in help text (#1244)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2024-02-15 10:54:39 +00:00
Shashwat Pandey
3d30842cf0
306 concise mode for plan (#1225)
Signed-off-by: Shashwat Pandey <72958686+SypherSP@users.noreply.github.com>
2024-02-14 13:21:35 +01:00
Arel Rabinowitz
80f72cecfe
Import ForEach: Prerequisite - Prepare codebase for dynamic addresses for ImportTargets (#1207)
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
2024-02-08 16:05:12 +02: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
James Humphries
199ec898e6
Resolve more inconsistencies in 32-bit systems (#1214)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Co-authored-by: Isaac Parker <parrotmac@gmail.com>
2024-02-02 13:46:38 +00:00
lettucemode
d9e023353f
Added aliases for state list, state mv, and state rm (#1220)
Signed-off-by: Steven Hyland <2knowindeed@gmail.com>
2024-02-01 10:54:09 -05:00
Dmitry Kisler
7d73f2bbe6
Refactor tests to follow a safer way of setting envvars (#1215)
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
2024-01-31 11:25:02 +01:00
Mario Valderrama
e84b2f7f95
Support the XDG Base Directory Specification (#1200)
Signed-off-by: Mario Valderrama <mario.valderrama@ionos.com>
2024-01-31 11:04:09 +01:00
Will Yardley
f96cb50405
command/views: Remove extra newline in validate output (#764)
Signed-off-by: William Yardley <wyardley@users.noreply.github.com>
2024-01-30 13:40:33 +01:00
Kuba Martin
9f95a840b0
Fix running tofu show and tofu state show with state files that reference Terraform registry providers. (#1141)
Signed-off-by: Jakub Martin <kubam@spacelift.io>
2024-01-18 13:58:33 +01: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
Joshua Shanks
4961996f51
Ignore version conflicts when unlocking state (#1123)
Signed-off-by: Joshua Shanks <jjshanks@gmail.com>
Signed-off-by: Kuba Martin <kubam@spacelift.io>
Co-authored-by: Kuba Martin <kubam@spacelift.io>
2024-01-17 12:02:27 +01:00
Maksym
5a2b906135
shutdown OAuth2 callback server when user hits Ctrl+C (#1074)
Signed-off-by: Maksym Nazarenko <maks.nazarenko@gmail.com>
Signed-off-by: Kuba Martin <kubam@spacelift.io>
Co-authored-by: Kuba Martin <kubam@spacelift.io>
2024-01-16 10:49:39 +01:00
Arel Rabinowitz
fcd241c0e4
Fix Global Schema Cache not working in provider acceptance tests (#1054)
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
2024-01-15 15:18:16 +02:00
Mikel Olasagasti Uranga
f84f773e64
Add Solaris and AIX console support (#632)
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
2024-01-03 12:32:31 -05:00
Mikel Olasagasti Uranga
a7b48eec51
Use github.com/cli/browser (#602)
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
2024-01-03 11:32:55 -05:00
Jon Johnson
cf0d953dc1
statemgr: Make Filesystem impl "correct" and fast (#579)
Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
2024-01-03 10:28:17 -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
06b31cd26f
Replace additional Terraform -> OpenTofu (#1007)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: James Humphries <jamesh@spacelift.io>
2023-12-13 11:35:41 -05:00
Christian Mesh
54d2130473
Find additional places where terraform should be replaced with tofu (#1001)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2023-12-13 07:18:43 -05:00
Christian Mesh
f1a57344bd
Improve unclear provider resolver error messages (#1003)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2023-12-12 13:10:16 -05:00
Christian Mesh
25a6f51732
898 consolidate and remove tfe addr [part 2] (#998)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2023-12-12 11:22:39 -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
Christian Mesh
47071c2696
904 missing provider module message (#981)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2023-12-07 10:34:50 -05:00
Haidong Ji
8138991eed
Change references to opentofu.org (#902)
Signed-off-by: Haidong Ji <ji@haidongji.com>
2023-11-24 17:07:06 +01:00
Dmitry Kisler
70dd385136
Add no_proxy and https_proxy attributes to s3 backend schema (#896)
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
2023-11-20 14:37:59 +01:00
HaojueWang
084c5dfc8b
keep init wording consistent in internal/command/init.go (#855)
Signed-off-by: haojue <acewhj@gmail.com>
2023-11-13 10:03:25 -05:00
Thiago Padilha
a3150d6b31
Avoid mutating input config in node_resource_validate (#850)
Signed-off-by: Thiago Padilha <thiago@padilha.cc>
2023-11-10 13:51:39 +01: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
Igor Savchenko
572d8d95d1
Update user-agent from go-tfe to opentofu where go-tfe is used (#807) 2023-11-02 12:11:13 +01:00
Kuba Martin
9c789368dc
Stop reading providers from the HashiCorp registry based on the statefile if not specified in code. (#773)
Signed-off-by: Jakub Martin <kubam@spacelift.io>
2023-10-27 16:23:41 +02: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
Marcin Wyszynski
275dd116f9
Pass context to all remote.Client operations (#786)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-25 12:37:58 +02:00
Marcin Wyszynski
da1ba56b41
Make backend.Workspaces accept a context (#784)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-24 19:59:28 +02:00
Marcin Wyszynski
925db6dbc5
Make backend.DeleteWorkspace accept a context (#782)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-24 16:55:03 +02:00
Marcin Wyszynski
a6a54c3777
Make backend.StateMgr accept a context (#780)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-24 15:47:46 +02:00
Marcin Wyszynski
f906c4792a
Make backend.Configure accept a context (#779)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-24 13:55:21 +02:00
Marcin Wyszynski
b17374dc44
Make backend.PrepareConfig accept a context (#777)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-24 13:34:15 +02:00
Marcin Wyszynski
bda32938e4
Make backend.ConfigSchema accept a context (#776)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-10-24 13:14:01 +02:00
RLRabinowitz
8967cdcee7
Remove all Terraform Cloud mentions in STDOUTs in the codebase (#703) 2023-10-12 12:07:16 +01:00
Elbaz
01cf4cda3f
Update placeholderplaceholderplaceholder occurrences to our doc site (#684) 2023-10-10 12:54:03 +03: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
Mikhail Sliusarev
60a9db0a43
Alter the help message for test command to print the expected behaviour (#622) 2023-10-03 11:17:26 +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
Lars Lehtonen
6cd1c00e1d
internal/command: demote modulePath() export (#617)
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2023-09-29 11:23:50 +02:00
James Humphries
92abeb27eb
Correct comment in init_test.go that incorrectly described a test (#615)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2023-09-28 14:11:06 +02:00
Elbaz
8465827f03
go build / go install should generate tofu binary (#590) 2023-09-27 15:37:55 +03:00
Lars Lehtonen
23ad929d2f
internal/command: wrap formatted test errors (#596) 2023-09-27 11:19:16 +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
Lars Lehtonen
656ab5a8be
internal/command: remove unused type pluginSHA256LockFile (#575)
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2023-09-25 17:17:17 +02:00
Lars Lehtonen
a257fc99e9
internal/command: wrap formatted errors (#519) 2023-09-21 15:45:28 +03: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
c6aeb9e836
Rename legacy package to OpenTofu (#493) 2023-09-20 16:10:32 +03:00
Yaron Yarimi
0bac273d1c
Rename internal/providercache + internal/refactoring to OpenTofu (#480) 2023-09-20 15:49:50 +03:00
Yaron Yarimi
794e3413bb
Rename opentf package to tofu (#466) 2023-09-20 15:16:53 +03:00
Elbaz
b524b2bdbe
Update internal/httpclient folder to OpenTofu (#467) 2023-09-20 14:59:20 +03:00
Yaron Yarimi
c8acedd885
Rename github.com/placeholderplaceholderplaceholder/opentf to github.com/opentofu/opentofu (#461) 2023-09-20 14:35:35 +03:00
Lars Lehtonen
c2fd0562c1
internal/builtin internal/cloud internal/command Wrap Errors (#413) 2023-09-18 15:16:17 +03:00
James Humphries
0654ffd0dd
[RFC Implementation] Bypass gpg validation of packages if the registry does not provide any keys (#309) 2023-09-14 13:55:01 +02:00
Lars Lehtonen
bad4d48f6d
internal/command: deprecate ioutil (#318) 2023-09-07 19:53:12 +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
12897327b6
Require hostname for cloud/remote backends and login/logout (#291)
Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
2023-09-06 12:54:39 +02: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
c3ec988d94 Rely on StdOut and StdError in tests, to avoid issues with output order
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
2023-09-03 16:37:05 +03:00