Пример #1
0
    def test_positive_upgrade_package(self):
        """@Test: Upgrade content host package remotely

        @Feature: Content Host - Package

        @Assert: Package was successfully upgraded

        """
        self.client.run('yum install -y {0}'.format(FAKE_1_CUSTOM_PACKAGE))
        ContentHost.package_upgrade({
            u'content-host': self.client.hostname,
            u'organization-id': KatelloAgentTestCase.org['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)
Пример #2
0
    def test_ch_package_upgrade(self):
        """@Test: Upgrade content host package remotely

        @Feature: Content Host - Package

        @Assert: Package was successfully upgraded

        """
        self.client.run("yum install -y {0}".format(FAKE_1_CUSTOM_PACKAGE))
        ContentHost.package_upgrade(
            {
                u"content-host": self.client.hostname,
                u"organization-id": TestCHKatelloAgent.org["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)