def METHOD_NAME(katello_agent_client):
    """Apply errata on a host
    :id: 8d0e5c93-f9fd-4ec0-9a61-aa93082a30c5
    :expectedresults: Errata is scheduled for installation
    :parametrized: yes
    :CaseLevel: System
    """
    sat = katello_agent_client['sat']
    client = katello_agent_client['client']
    host_info = katello_agent_client['host_info']
    client.run(f'yum install -y {constants.FAKE_1_CUSTOM_PACKAGE}')
    result = sat.cli.Host.errata_info(
        {'host-id': host_info['id'], 'id': settings.repos.yum_0.errata[1]}
    )
    assert result[0]['errata-id'] == settings.repos.yum_0.errata[1]
    assert constants.FAKE_2_CUSTOM_PACKAGE in result[0]['packages']
    sat.cli.Host.errata_apply(
        {'errata-ids': settings.repos.yum_0.errata[1], 'host-id': host_info['id']}
    )
    assert client.run(f'rpm -q {constants.FAKE_2_CUSTOM_PACKAGE}').status == 0