def test_positive_upgrade_package(self): """Upgrade a host package remotely :id: ad751c63-7175-40ae-8bc4-800462cd9c29 :expectedresults: Package was successfully upgraded :CaseLevel: System """ self.client.run(f'yum install -y {FAKE_1_CUSTOM_PACKAGE}') Host.package_upgrade({'host-id': self.host['id'], 'packages': FAKE_1_CUSTOM_PACKAGE_NAME}) result = self.client.run(f'rpm -q {FAKE_2_CUSTOM_PACKAGE}') assert result.return_code == 0
def test_positive_upgrade_package(self): """Upgrade a host package remotely @Feature: Host - Package @Assert: Package was successfully upgraded """ self.client.run('yum install -y {0}'.format(FAKE_1_CUSTOM_PACKAGE)) Host.package_upgrade({ u'host-id': self.host['id'], u'packages': FAKE_1_CUSTOM_PACKAGE_NAME, }) result = self.client.run('rpm -q {0}'.format(FAKE_2_CUSTOM_PACKAGE)) self.assertEqual(result.return_code, 0)
def test_positive_upgrade_package(self): """Upgrade a host package remotely @id: ad751c63-7175-40ae-8bc4-800462cd9c29 @Assert: Package was successfully upgraded @CaseLevel: System """ self.client.run('yum install -y {0}'.format(FAKE_1_CUSTOM_PACKAGE)) Host.package_upgrade({ u'host-id': self.host['id'], u'packages': FAKE_1_CUSTOM_PACKAGE_NAME, }) result = self.client.run('rpm -q {0}'.format(FAKE_2_CUSTOM_PACKAGE)) self.assertEqual(result.return_code, 0)
def test_positive_upgrade_package(katello_agent_client): """Upgrade a host package remotely :id: ad751c63-7175-40ae-8bc4-800462cd9c29 :expectedresults: Package was successfully upgraded :CaseLevel: System """ client = katello_agent_client['client'] host_info = katello_agent_client['host_info'] client.run(f'yum install -y {FAKE_1_CUSTOM_PACKAGE}') Host.package_upgrade({ 'host-id': host_info['id'], 'packages': FAKE_1_CUSTOM_PACKAGE_NAME }) result = client.run(f'rpm -q {FAKE_2_CUSTOM_PACKAGE}') assert result.status == 0