Skip to content

Commit 4911962

Browse files
add function tuples round-trip test suite (#268)
1 parent a80e8e2 commit 4911962

4 files changed

Lines changed: 79 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
resource "octopusdeploy_process_templated_step" "step" {
2+
parameters = {
3+
"Octopus.Action.Aws.IamCapabilities" = jsonencode([
4+
"CAPABILITY_AUTO_EXPAND",
5+
"CAPABILITY_IAM",
6+
"CAPABILITY_NAMED_IAM",
7+
])
8+
}
9+
}
10+
11+
variable "list" {
12+
default = toset([
13+
"a",
14+
"b",
15+
"c",
16+
])
17+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
resource "octopusdeploy_process_templated_step" "step" {
2+
parameters = {
3+
"Octopus.Action.Aws.IamCapabilities" = jsonencode([
4+
"CAPABILITY_AUTO_EXPAND",
5+
"CAPABILITY_IAM",
6+
"CAPABILITY_NAMED_IAM"
7+
]),
8+
}
9+
}
10+
11+
12+
variable "list" {
13+
default = toset([
14+
"a",
15+
"b",
16+
"c"
17+
])
18+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"resource": [
3+
{
4+
"\"octopusdeploy_process_templated_step\"": {
5+
"\"step\"": {
6+
"parameters": {
7+
"\"Octopus.Action.Aws.IamCapabilities\"": "${jsonencode([\"CAPABILITY_AUTO_EXPAND\", \"CAPABILITY_IAM\", \"CAPABILITY_NAMED_IAM\"])}"
8+
},
9+
"__is_block__": true
10+
}
11+
}
12+
}
13+
],
14+
"variable": [
15+
{
16+
"\"list\"": {
17+
"default": "${toset([\"a\", \"b\", \"c\"])}",
18+
"__is_block__": true
19+
}
20+
}
21+
]
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"resource": [
3+
{
4+
"\"octopusdeploy_process_templated_step\"": {
5+
"\"step\"": {
6+
"parameters": {
7+
"\"Octopus.Action.Aws.IamCapabilities\"": "${jsonencode([\"CAPABILITY_AUTO_EXPAND\", \"CAPABILITY_IAM\", \"CAPABILITY_NAMED_IAM\"])}"
8+
},
9+
"__is_block__": true
10+
}
11+
}
12+
}
13+
],
14+
"variable": [
15+
{
16+
"\"list\"": {
17+
"default": "${toset([\"a\", \"b\", \"c\"])}",
18+
"__is_block__": true
19+
}
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)