Skip to content

Commit

Permalink
Add test for multiple .tf files converting to multiple .pp files (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frassle committed Dec 14, 2022
1 parent 09fe04a commit 8e65b1f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/tf2pulumi/convert/testdata/multiple_files/main.tf
@@ -0,0 +1,4 @@
resource "simple_resource" "a_resource" {
input_one = "hello"
input_two = var.bool_in
}
3 changes: 3 additions & 0 deletions pkg/tf2pulumi/convert/testdata/multiple_files/outputs.tf
@@ -0,0 +1,3 @@
output "some_output" {
value = simple_resource.a_resource.result
}
4 changes: 4 additions & 0 deletions pkg/tf2pulumi/convert/testdata/multiple_files/pcl/main.pp
@@ -0,0 +1,4 @@
resource aResource "simple:index:resource" {
inputOne = "hello"
inputTwo = boolIn
}
3 changes: 3 additions & 0 deletions pkg/tf2pulumi/convert/testdata/multiple_files/pcl/outputs.pp
@@ -0,0 +1,3 @@
output someOutput {
value = aResource.result
}
@@ -0,0 +1,2 @@
config boolIn bool {
}
3 changes: 3 additions & 0 deletions pkg/tf2pulumi/convert/testdata/multiple_files/variables.tf
@@ -0,0 +1,3 @@
variable "bool_in" {
type = bool
}

0 comments on commit 8e65b1f

Please sign in to comment.