Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test that we actually translate names from Terraform to Pulumi #674

Merged
merged 1 commit into from Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/tf2pulumi/convert/testdata/count/pcl/main.pp
Expand Up @@ -3,8 +3,8 @@
range = 4

}
input_one = "Hello ${range.value}"
input_two = true
inputOne = "Hello ${range.value}"
inputTwo = true
}
output someOutputA {
value = aResourceWithCount[0].result
Expand Down
8 changes: 4 additions & 4 deletions pkg/tf2pulumi/convert/testdata/mappings/simple.json
Expand Up @@ -36,11 +36,11 @@
"tok": "simple:index:data_source",
"fields": {
"input_one": {
"name": "input_one",
"name": "inputOne",
"type": "string"
},
"input_two": {
"name": "input_two",
"name": "inputTwo",
"type": "integer"
},
"result": {
Expand All @@ -55,11 +55,11 @@
"tok": "simple:index:resource",
"fields": {
"input_one": {
"name": "input_one",
"name": "inputOne",
"type": "string"
},
"input_two": {
"name": "input_two",
"name": "inputTwo",
"type": "integer"
},
"result": {
Expand Down
8 changes: 4 additions & 4 deletions pkg/tf2pulumi/convert/testdata/schemas/simple.json
Expand Up @@ -6,10 +6,10 @@
"inputs": {
"type": "object",
"properties": {
"input_one": {
"inputOne": {
"type": "string"
},
"input_two": {
"inputTwo": {
"type": "integer"
}
}
Expand All @@ -27,10 +27,10 @@
"resources": {
"simple:index:resource": {
"inputProperties": {
"input_one": {
"inputOne": {
"type": "string"
},
"input_two": {
"inputTwo": {
"type": "integer"
}
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/tf2pulumi/convert/testdata/simple_datasource/pcl/main.pp
@@ -1,6 +1,6 @@
aDataSource = invoke("simple:index:data_source", {
input_one = "hello",
input_two = true
inputOne = "hello",
inputTwo = true
})
output someOutput {
value = aDataSource.result
Expand Down
4 changes: 2 additions & 2 deletions pkg/tf2pulumi/convert/testdata/simple_resource/pcl/main.pp
@@ -1,6 +1,6 @@
resource aResource "simple:index:resource" {
input_one = "hello"
input_two = true
inputOne = "hello"
inputTwo = true
}
output someOutput {
value = aResource.result
Expand Down