'Class level resource cleanup for test cases.
Resource cleanup must be able to handle the case of partially setup
resources, in case a failure during `resource_setup` should happen.'

@classmethod
def resource_cleanup(cls):

    if cls.validation_resources:
        if hasattr(cls, 'os_primary'):
            vresources.clear_validation_resources(cls.os_primary, cls.validation_resources)
            cls.validation_resources = {}
        else:
            LOG.warning('Client    manager    not    found,    validation    resources    not    deleted')
