def METHOD_NAME(
    session, oscap_content_path, target_sat, default_org, default_location
):
    """Perform end to end testing for openscap content component
    :id: 9870555d-0b60-41ab-a481-81d4d3f78fec
    :Steps:
        1. Create an openscap content.
        2. Read values from created entity.
        3. Update the openscap content with new name.
        4. Delete openscap content
    :expectedresults: All expected CRUD actions finished successfully
    :CaseLevel: Integration
    """
    title = gen_string('alpha')
    new_title = gen_string('alpha')
    with session:
        session.organization.select(org_name=default_org.name)
        session.location.select(loc_name=default_location.name)
        session.oscapcontent.create(
            {
                'file_upload.title': title,
                'file_upload.scap_file': oscap_content_path,
                'organizations.resources.assigned': [default_org.name],
                'locations.resources.assigned': [default_location.name],
            }
        )
        oscap_values = session.oscapcontent.read(title)
        assert oscap_values['file_upload']['title'] == title
        assert oscap_values['file_upload']['uploaded_scap_file'] == oscap_content_path.name
        assert default_org.name in oscap_values['organizations']['resources']['assigned']
        assert default_location.name in oscap_values['locations']['resources']['assigned']
        session.oscapcontent.update(title, {'file_upload.title': new_title})
        session.location.search('abc')  # workaround for issue SatelliteQE/airgun#382.
        assert session.oscapcontent.search(new_title)[0]['Title'] == new_title
        session.location.search('abc')
        assert not session.oscapcontent.search(title)
        session.location.search('abc')
        session.oscapcontent.delete(new_title)
        session.location.search('abc')
        assert not session.oscapcontent.search(new_title)