-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a problem where exact problem was not applied on seek_regex_key…
…_in_dict_values(). #225
- Loading branch information
Showing
8 changed files
with
48 additions
and
1 deletion.
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
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 @@ | ||
Failure: Can not find demo in mesh_name property of module\.appmesh_existing\.aws_appmesh_virtual_node.vn\["ui"\]\. |
Empty file.
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,28 @@ | ||
resource "aws_appmesh_virtual_node" "vn" { | ||
for_each = { | ||
"ui": "demo2", | ||
} | ||
name = "${each.key}-vn" | ||
mesh_name = each.value | ||
|
||
spec { | ||
backend { | ||
virtual_service { | ||
virtual_service_name = "servicea.simpleapp.local" | ||
} | ||
} | ||
|
||
listener { | ||
port_mapping { | ||
port = 80 | ||
protocol = "http" | ||
} | ||
} | ||
|
||
service_discovery { | ||
dns { | ||
hostname = "serviceb.simpleapp.local" | ||
} | ||
} | ||
} | ||
} |
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,7 @@ | ||
module "appmesh_existing" { | ||
source = "./appmesh" | ||
} | ||
|
||
provider "aws" { | ||
region = "eu-west-1" | ||
} |
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 @@ | ||
{"format_version":"0.1","terraform_version":"0.12.21","planned_values":{"root_module":{"child_modules":[{"resources":[{"address":"module.appmesh_existing.aws_appmesh_virtual_node.vn[\"ui\"]","mode":"managed","type":"aws_appmesh_virtual_node","name":"vn","index":"ui","provider_name":"aws","schema_version":1,"values":{"mesh_name":"demo2","name":"ui-vn","spec":[{"backend":[{"virtual_service":[{"virtual_service_name":"servicea.simpleapp.local"}]}],"listener":[{"health_check":[],"port_mapping":[{"port":80,"protocol":"http"}]}],"logging":[],"service_discovery":[{"aws_cloud_map":[],"dns":[{"hostname":"serviceb.simpleapp.local"}]}]}],"tags":null}}],"address":"module.appmesh_existing"}]}},"resource_changes":[{"address":"module.appmesh_existing.aws_appmesh_virtual_node.vn[\"ui\"]","module_address":"module.appmesh_existing","mode":"managed","type":"aws_appmesh_virtual_node","name":"vn","index":"ui","provider_name":"aws","change":{"actions":["create"],"before":null,"after":{"mesh_name":"demo2","name":"ui-vn","spec":[{"backend":[{"virtual_service":[{"virtual_service_name":"servicea.simpleapp.local"}]}],"listener":[{"health_check":[],"port_mapping":[{"port":80,"protocol":"http"}]}],"logging":[],"service_discovery":[{"aws_cloud_map":[],"dns":[{"hostname":"serviceb.simpleapp.local"}]}]}],"tags":null},"after_unknown":{"arn":true,"created_date":true,"id":true,"last_updated_date":true,"spec":[{"backend":[{"virtual_service":[{}]}],"backends":true,"listener":[{"health_check":[],"port_mapping":[{}]}],"logging":[],"service_discovery":[{"aws_cloud_map":[],"dns":[{"service_name":true}]}]}]}}}],"configuration":{"provider_config":{"aws":{"name":"aws","expressions":{"region":{"constant_value":"eu-west-1"}}}},"root_module":{"module_calls":{"appmesh_existing":{"source":"./appmesh","module":{"resources":[{"address":"aws_appmesh_virtual_node.vn","mode":"managed","type":"aws_appmesh_virtual_node","name":"vn","provider_config_key":"appmesh_existing:aws","expressions":{"mesh_name":{"references":["each.value"]},"name":{"references":["each.key"]},"spec":[{"backend":[{"virtual_service":[{"virtual_service_name":{"constant_value":"servicea.simpleapp.local"}}]}],"listener":[{"port_mapping":[{"port":{"constant_value":80},"protocol":{"constant_value":"http"}}]}],"service_discovery":[{"dns":[{"hostname":{"constant_value":"serviceb.simpleapp.local"}}]}]}]},"schema_version":1,"for_each_expression":{"constant_value":{"ui":"demo2"}}}]}}}}}} |
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,7 @@ | ||
Feature: test | ||
|
||
Scenario: Appmesh module can use existing appmesh (should fail) | ||
Given I have aws_appmesh_virtual_node defined | ||
When its address is module.appmesh_existing.aws_appmesh_virtual_node.vn | ||
And its index is ui | ||
Then its mesh_name must be demo |