diff --git a/test/unit/module/test_template.py b/test/unit/module/test_template.py index 69460d608c..a76e4874c0 100644 --- a/test/unit/module/test_template.py +++ b/test/unit/module/test_template.py @@ -742,6 +742,15 @@ def test_get_object_without_conditions(self): {"Ref": "LaunchConfiguration"}, ] }, + "PropertyA": [ + { + "Fn::If": [ + "useAmiId", + {"Ref": "AWS::NoValue"}, + {"Ref": "LaunchConfiguration"}, + ] + } + ], }, } }, @@ -761,7 +770,10 @@ def test_get_object_without_conditions(self): elif result["Scenario"] == {"useAmiId": False}: self.assertDictEqual( result["Object"], - {"LaunchConfiguration": {"Ref": "LaunchConfiguration"}}, + { + "LaunchConfiguration": {"Ref": "LaunchConfiguration"}, + "PropertyA": [{"Ref": "LaunchConfiguration"}], + }, ) def test_get_object_without_conditions_no_value(self): @@ -797,6 +809,15 @@ def test_get_object_without_conditions_no_value(self): ] }, ], + "PropertyA": [ + { + "Fn::If": [ + "useAmiId", + {"Ref": "AWS::NoValue"}, + {"Ref": "LaunchConfiguration"}, + ] + } + ], }, } },