def __050_validate_correct_physical_id(self):
     stack_arn = self.get_resource_group_stack_arn(
         self.TEST_DEPLOYMENT_NAME, self.TEST_RESOURCE_GROUP_NAME)
     physical_id = self.get_stack_resource_physical_id(
         stack_arn, _TEST_INSTANCE_A)
     info = custom_resource_utils.get_custom_resource_info(physical_id)
     self.assertEqual(info.physical_id, _TEST_PHYSICAL_ID)
Example #2
0
 def add_resource_versions(stack_info):
     for resource_info in stack_info.resources:
         if resource_info.type.startswith("Custom::"):
             info = custom_resource_utils.get_custom_resource_info(
                 resource_info.physical_id)
             if info.create_version:
                 resource_types_used_versions.setdefault(
                     resource_info.type, set()).add(info.create_version)
                 metadata_version = resource_info.get_cloud_canvas_metadata(
                     custom_resource_utils.METADATA_VERSION_TAG)
                 if metadata_version:
                     resource_types_used_versions[resource_info.type].add(
                         metadata_version)