def METHOD_NAME(session, module_org):
    """When content view is published and proper lifecycle environment added to it,
    corresponding audit entry appear in the application
    :id: 8e24b1e1-fde0-4715-ad1d-053db58fee66
    :expectedresults: Audit entry for added environment contains valid data
    :CaseAutomation: Automated
    :CaseLevel: Integration
    :CaseImportance: Medium
    """
    cv = entities.ContentView(organization=module_org).create()
    cv.publish()
    with session:
        values = session.audit.search(
            f'type=katello/content_view_environment and organization={module_org.name}'
        )
        assert values['action_type'] == 'add'
        assert values['resource_type'] == 'KATELLO/CONTENT VIEW ENVIRONMENT'
        assert values['resource_name'] == f'{ENVIRONMENT}/{cv.name} / {cv.name}'
        assert len(values['action_summary']) == 1
        assert values['action_summary'][0]['column0'] == 'Added {}/{} to {}'.format(
            ENVIRONMENT, cv.name, cv.name
        )