aboutsummaryrefslogtreecommitdiff
path: root/test/formatters
diff options
context:
space:
mode:
Diffstat (limited to 'test/formatters')
-rw-r--r--test/formatters/installers/opentofu.bash7
-rw-r--r--test/formatters/samplecode/opentofu/in.tf6
-rw-r--r--test/formatters/samplecode/opentofu/out.tf6
3 files changed, 19 insertions, 0 deletions
diff --git a/test/formatters/installers/opentofu.bash b/test/formatters/installers/opentofu.bash
new file mode 100644
index 0000000..d95c0fe
--- /dev/null
+++ b/test/formatters/installers/opentofu.bash
@@ -0,0 +1,7 @@
+curl -fsSL https://get.opentofu.org/opentofu.gpg -o /etc/apt/keyrings/opentofu.gpg
+curl -fsSL https://packages.opentofu.org/opentofu/tofu/gpgkey | gpg --no-tty --batch --dearmor -o /etc/apt/keyrings/opentofu-repo.gpg
+
+echo "deb [signed-by=/etc/apt/keyrings/opentofu.gpg,/etc/apt/keyrings/opentofu-repo.gpg] https://packages.opentofu.org/opentofu/tofu/any/ any main" > /etc/apt/sources.list.d/opentofu.list
+
+apt-get update
+apt-get install -y tofu
diff --git a/test/formatters/samplecode/opentofu/in.tf b/test/formatters/samplecode/opentofu/in.tf
new file mode 100644
index 0000000..7fd0456
--- /dev/null
+++ b/test/formatters/samplecode/opentofu/in.tf
@@ -0,0 +1,6 @@
+ resource "google_sql_user" "user" {
+ name = "camunda"
+ instance =google_sql_database_instance.camunda-db.name
+
+ password ="futurice"
+ }
diff --git a/test/formatters/samplecode/opentofu/out.tf b/test/formatters/samplecode/opentofu/out.tf
new file mode 100644
index 0000000..ca64220
--- /dev/null
+++ b/test/formatters/samplecode/opentofu/out.tf
@@ -0,0 +1,6 @@
+resource "google_sql_user" "user" {
+ name = "camunda"
+ instance = google_sql_database_instance.camunda-db.name
+
+ password = "futurice"
+}