@@ -104,6 +104,10 @@ def test_resolve_schema(schema, result):
104104 "/properties/LaunchTemplate/LaunchTemplateName" ,
105105 "/properties/LaunchTemplate/LaunchTemplateId" ,
106106 "/properties/LaunchTemplate/Version" ,
107+ "/properties/Description" ,
108+ "/properties/Description/Tags" ,
109+ "/properties/Description/Tags/*/Key" ,
110+ "/properties/Description/Tags/*/Value" ,
107111 },
108112 ),
109113 ],
@@ -118,3 +122,34 @@ def test_add_paths_to_schema(schema, result):
118122 )
119123 schema_with_paths = add_paths_to_schema (collected_schemas_to_resolve [0 ])
120124 assert set (schema_with_paths ["paths" ]) == result
125+
126+
127+ @pytest .mark .parametrize (
128+ "schema,result" ,
129+ [
130+ (
131+ "data/schemas-for-testing/schema-launch-template.json" ,
132+ {
133+ "/properties/LaunchTemplate" ,
134+ "/properties/LaunchTemplate/LaunchTemplateName" ,
135+ "/properties/LaunchTemplate/LaunchTemplateId" ,
136+ "/properties/LaunchTemplate/Version" ,
137+ "/properties/Description" ,
138+ "/properties/Description/Tags" ,
139+ "/properties/Description/Tags/*/Key" ,
140+ "/properties/Description/Tags/*/Value" ,
141+ },
142+ )
143+ ],
144+ )
145+ def test_add_tag_path (schema , result ):
146+ """Unit test to verify that schema has tag property identified"""
147+ collected_schemas_to_resolve = collect_schemas (
148+ schemas = [
149+ "file:/"
150+ + str (Path (os .path .dirname (os .path .realpath (__file__ ))).joinpath (schema ))
151+ ]
152+ )
153+ schema_with_paths = add_paths_to_schema (collected_schemas_to_resolve [0 ])
154+ assert "TaggingPath" in schema_with_paths
155+ assert schema_with_paths ["TaggingPath" ] == "/properties/Description/Tags"
0 commit comments