diff --git a/test/unit/module/template/test_template.py b/test/unit/module/template/test_template.py index 2692152b3f..f82ed945e5 100644 --- a/test/unit/module/template/test_template.py +++ b/test/unit/module/template/test_template.py @@ -41,23 +41,23 @@ def test_build_graph(self): # ruff: noqa: E501 expected_content = """digraph "template" { -MyModule [color=black, label="MyModule\\n", shape=ellipse, type=Resource]; -RootRole [color=black, label="RootRole\\n", shape=ellipse, type=Resource]; -RolePolicies [color=black, label="RolePolicies\\n", shape=ellipse, type=Resource]; -RootInstanceProfile [color=black, label="RootInstanceProfile\\n", shape=ellipse, type=Resource]; -MyEC2Instance [color=black, label="MyEC2Instance\\n", shape=ellipse, type=Resource]; -mySnsTopic [color=black, label="mySnsTopic\\n", shape=ellipse, type=Resource]; -MyEC2Instance1 [color=black, label="MyEC2Instance1\\n", shape=ellipse, type=Resource]; -ElasticIP [color=black, label="ElasticIP\\n", shape=ellipse, type=Resource]; -ElasticLoadBalancer [color=black, label="ElasticLoadBalancer\\n", shape=ellipse, type=Resource]; -IamPipeline [color=black, label="IamPipeline\\n", shape=ellipse, type=Resource]; -CustomResource [color=black, label="CustomResource\\n", shape=ellipse, type=Resource]; -WaitCondition [color=black, label="WaitCondition\\n", shape=ellipse, type=Resource]; -LambdaFunction [color=black, label="LambdaFunction\\n", shape=ellipse, type=Resource]; -RolePolicies -> RootRole [color=black, key=0, label=Ref, source_paths="['Properties', 'Roles', 0]"]; -RootInstanceProfile -> RootRole [color=black, key=0, label=Ref, source_paths="['Properties', 'Roles', 0]"]; -MyEC2Instance -> RootInstanceProfile [color=black, key=0, label=Ref, source_paths="['Properties', 'IamInstanceProfile']"]; -ElasticLoadBalancer -> MyEC2Instance [color=black, key=0, label=Ref, source_paths="['Properties', 'Instances', 0]"]; +MyModule [label="MyModule\\n", color=black, shape=ellipse, type=Resource]; +RootRole [label="RootRole\\n", color=black, shape=ellipse, type=Resource]; +RolePolicies [label="RolePolicies\\n", color=black, shape=ellipse, type=Resource]; +RootInstanceProfile [label="RootInstanceProfile\\n", color=black, shape=ellipse, type=Resource]; +MyEC2Instance [label="MyEC2Instance\\n", color=black, shape=ellipse, type=Resource]; +mySnsTopic [label="mySnsTopic\\n", color=black, shape=ellipse, type=Resource]; +MyEC2Instance1 [label="MyEC2Instance1\\n", color=black, shape=ellipse, type=Resource]; +ElasticIP [label="ElasticIP\\n", color=black, shape=ellipse, type=Resource]; +ElasticLoadBalancer [label="ElasticLoadBalancer\\n", color=black, shape=ellipse, type=Resource]; +IamPipeline [label="IamPipeline\\n", color=black, shape=ellipse, type=Resource]; +CustomResource [label="CustomResource\\n", color=black, shape=ellipse, type=Resource]; +WaitCondition [label="WaitCondition\\n", color=black, shape=ellipse, type=Resource]; +LambdaFunction [label="LambdaFunction\\n", color=black, shape=ellipse, type=Resource]; +RolePolicies -> RootRole [key=0, source_paths="['Properties', 'Roles', 0]", label=Ref, color=black]; +RootInstanceProfile -> RootRole [key=0, source_paths="['Properties', 'Roles', 0]", label=Ref, color=black]; +MyEC2Instance -> RootInstanceProfile [key=0, source_paths="['Properties', 'IamInstanceProfile']", label=Ref, color=black]; +ElasticLoadBalancer -> MyEC2Instance [key=0, source_paths="['Properties', 'Instances', 0]", label=Ref, color=black]; } """.split( "\n"