Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
aoskotsky-amplify committed Feb 21, 2022
1 parent 067c89c commit 7020ee0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"locals": [
{
"function_test": [
"${var.basename}-${var.forwarder_function_name}_${md5(\"${var.vpc_id}${data.aws_region.current.name}\")}"
]
"function_test": "${var.basename}-${var.forwarder_function_name}_${md5(\"${var.vpc_id}${data.aws_region.current.name}\")}"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"locals": [
{
"embedded_interpolation": [
"${module.special_constants.aws_accounts[\"aaa-${local.foo}-${local.bar}\"]}/us-west-2/key_foo"
]
"embedded_interpolation": "${module.special_constants.aws_accounts[\"aaa-${local.foo}-${local.bar}\"]}/us-west-2/key_foo"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"locals": [
{
"multi_function": [
"${substr(split(\"-\",\"us-west-2\")[0],0,1)}"
],
"multi_function_embedded": [
"${substr(split(\"-\",\"us-west-2\")[0],0,1)}"
]
"multi_function": "${substr(split(\"-\",\"us-west-2\")[0],0,1)}",
"multi_function_embedded": "${substr(split(\"-\", \"us-west-2\")[0], 0, 1)}"
}
]
}
2 changes: 1 addition & 1 deletion test/helpers/terraform-config-json/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@
"ids_level_3": "${flatten(local.nested_data[*].nested[*].again[*][0].foo.bar[0])}"
}
]
}
}

0 comments on commit 7020ee0

Please sign in to comment.