Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Bugfix: #56, by forking hcl, submitted PR * added test Co-authored-by: Roni Frantchi <roni-frantchi@users.noreply.github.com>
- Loading branch information
1 parent
a215c41
commit e45c8e2
Showing
5 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...fixture/terraform_13/git_issue_56__line_ends_with_closing_paren/expected/main.terratag.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
resource "kubernetes_deployment" "audit_server" { | ||
metadata { | ||
name = "terraform-example" | ||
} | ||
spec { | ||
template { | ||
metadata { | ||
labels = { | ||
app = "as" | ||
} | ||
} | ||
spec { | ||
container { | ||
image = "helloworld" | ||
name = "as" | ||
} | ||
} | ||
} | ||
replicas = true ? 0 : (false ? 3 : 4) | ||
strategy { | ||
type = "Recreate" | ||
} | ||
} | ||
} | ||
|
||
resource "google_pubsub_topic" "audit_topic" { | ||
name = "yuvu" | ||
labels = merge( local.terratag_added_main, local.terratag_added_main) | ||
} | ||
|
||
locals { | ||
terratag_added_main = {"env0_environment_id"="40907eff-cf7c-419a-8694-e1c6bf1d1168","env0_project_id"="43fd4ff1-8d37-4d9d-ac97-295bd850bf94"} | ||
} | ||
|
29 changes: 29 additions & 0 deletions
29
test/fixture/terraform_13/git_issue_56__line_ends_with_closing_paren/expected/main.tf.bak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
resource "kubernetes_deployment" "audit_server" { | ||
metadata { | ||
name = "terraform-example" | ||
} | ||
spec { | ||
template { | ||
metadata { | ||
labels = { | ||
app = "as" | ||
} | ||
} | ||
spec { | ||
container { | ||
image = "helloworld" | ||
name = "as" | ||
} | ||
} | ||
} | ||
replicas = true ? 0 : (false ? 3 : 4) | ||
strategy { | ||
type = "Recreate" | ||
} | ||
} | ||
} | ||
|
||
resource "google_pubsub_topic" "audit_topic" { | ||
name = "yuvu" | ||
labels = local.terratag_added_main | ||
} |
29 changes: 29 additions & 0 deletions
29
test/fixture/terraform_13/git_issue_56__line_ends_with_closing_paren/input/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
resource "kubernetes_deployment" "audit_server" { | ||
metadata { | ||
name = "terraform-example" | ||
} | ||
spec { | ||
template { | ||
metadata { | ||
labels = { | ||
app = "as" | ||
} | ||
} | ||
spec { | ||
container { | ||
image = "helloworld" | ||
name = "as" | ||
} | ||
} | ||
} | ||
replicas = true ? 0 : (false ? 3 : 4) | ||
strategy { | ||
type = "Recreate" | ||
} | ||
} | ||
} | ||
|
||
resource "google_pubsub_topic" "audit_topic" { | ||
name = "yuvu" | ||
labels = local.terratag_added_main | ||
} |