def test_positive_apply_errata(self): """Apply errata to content host @Feature: Content Host - Errata @Assert: Errata is scheduled for installation """ self.client.download_install_rpm(FAKE_0_YUM_REPO, FAKE_0_CUSTOM_PACKAGE) ContentHost.errata_apply( { u"content-host": self.client.hostname, u"errata-ids": FAKE_0_ERRATA_ID, u"organization-id": KatelloAgentTestCase.org["id"], } )
def test_contenthost_apply_errata(self): """@Test: Apply errata to content host @Feature: Content Host - Errata @Assert: Errata is scheduled for installation """ self.vm.download_install_rpm(FAKE_0_YUM_REPO, FAKE_0_CUSTOM_PACKAGE) result = ContentHost.errata_apply({ u'organization-id': TestCHKatelloAgent.org['id'], u'content-host': self.vm.hostname, u'errata-ids': FAKE_0_ERRATA_ID, }) self.assertEqual(result.return_code, 0)