示例#1
0
 def test_08_install_conf_rpm(self):
     """replace the 1st client configuration RPM with the 2nd one on the client"""
     # get rid of the first one before installing the second one
     Util.remove_rpm(CLI, [self.test_repos[0]])
     Util.install_pkg_from_rhua(RHUA,
                                CLI,
                                "/tmp/%s-2.0/build/RPMS/noarch/%s-2.0-1.noarch.rpm" % \
                                (self.test_repos[1], self.test_repos[1]))
示例#2
0
 def test_10_install_conf_rpm():
     '''
        install configuration rpm to client
     '''
     Util.install_pkg_from_rhua(
         connection, cli,
         "/root/test_cli_rpm-3.0/build/RPMS/noarch/test_cli_rpm-3.0-1.noarch.rpm"
     )
示例#3
0
 def test_05_install_conf_rpm(self):
     """install the 1st client configuration RPM on the client"""
     # get rid of undesired repos first
     Util.remove_amazon_rhui_conf_rpm(CLI)
     Util.disable_beta_repos(CLI)
     Util.install_pkg_from_rhua(RHUA,
                                CLI,
                                "/tmp/%s-2.0/build/RPMS/noarch/%s-2.0-1.noarch.rpm" % \
                                (self.test_repos[0], self.test_repos[0]))
 def test_10_install_atomic_pkg():
     '''
        install the Atomic client configuration package on the Atomic host
     '''
     if AH_EXISTS:
         Util.install_pkg_from_rhua(RHUA, ATOMIC_CLI,
                                    "/root/test_atomic_pkg.tar.gz")
     else:
         raise nose.exc.SkipTest("No known Atomic host")
示例#5
0
def test_09_install_conf_rpm():
    '''
       install the client configuration RPM
    '''
    # get rid of undesired repos first
    Util.remove_amazon_rhui_conf_rpm(CLI)
    Util.disable_beta_repos(CLI)
    Util.install_pkg_from_rhua(
        RHUA, CLI,
        "/tmp/%s-2.0/build/RPMS/noarch/%s-2.0-1.noarch.rpm" % (REPO, REPO))
示例#6
0
 def test_16_install_docker_rpm(self):
     '''
        install a docker client configuration RPM to client
     '''
     if self.rhua_os_version < 7:
         raise nose.exc.SkipTest('Not supported on RHEL ' +
                                 str(self.rhua_os_version))
     Util.install_pkg_from_rhua(
         connection, cli,
         "/root/test_docker_cli_rpm-4.0/build/RPMS/noarch/test_docker_cli_rpm-4.0-1.noarch.rpm"
     )
示例#7
0
 def test_08_install_cli_rpm(self):
     '''
        install the client configuration RPM
     '''
     if not self.cli_supported:
         raise nose.exc.SkipTest("Not supported on RHEL %s" %
                                 self.cli_os_version)
     Util.install_pkg_from_rhua(RHUA, CLI, CONF_RPM_PATH)
     # restart the docker service for the configuration to take effect
     # (only clients running the docker service)
     Util.restart_if_present(CLI, "docker")
    def test_10_install_conf_rpm():
        '''
           install the client configuration RPM
        '''
        # get rid of undesired repos first
        Util.remove_amazon_rhui_conf_rpm(CLI)
        Util.disable_beta_repos(CLI)
        Util.install_pkg_from_rhua(
            RHUA, CLI, "/root/test_cli_rpm-3.0/build/RPMS/noarch/" +
            "test_cli_rpm-3.0-1.rhui.noarch.rpm")

        # verify the installation by checking the client configuration RPM version
        Expect.expect_retval(
            CLI,
            "[ `rpm -q --queryformat \"%{VERSION}\" test_cli_rpm` = '3.0' ]")
示例#9
0
 def test_12_additional_group(self):
     """import a comps file containing one more group and expect the group to be added"""
     # and nothing lost...
     # import the "updated" comps file
     repo = self.repo_with_mod_groups
     modified_comps_xml = "/tmp/extra_rhui_files/%s/mod-comps.xml" % repo
     RHUIManagerCLI.repo_add_comps(RHUA, repo, modified_comps_xml)
     # create a client configuration RPM, install it on the client
     RHUIManagerCLI.client_rpm(RHUA, [repo], [repo, "2.1"], "/tmp")
     Util.remove_rpm(CLI, [self.test_repos[1]])
     Util.install_pkg_from_rhua(RHUA,
                                CLI,
                                "/tmp/%s-2.1/build/RPMS/noarch/%s-2.1-1.noarch.rpm" % \
                                (repo, repo))
     # compare client's available groups with the *original* comps file,
     # expecting all the original groups plus the extra group
     groups_on_client = Yummy.yum_grouplist(CLI)
     original_comps_xml = "/tmp/extra_rhui_files/%s/comps.xml" % repo
     groups_in_xml = Yummy.comps_xml_grouplist(RHUA, original_comps_xml)
     # trick: put the extra group to the right place in the sorted list
     insort(groups_in_xml, self.test_group_mod)
     nose.tools.eq_(groups_on_client, groups_in_xml)
     nose.tools.ok_(self.test_group_mod in groups_on_client)
 def test_10_install_atomic_pkg():
     '''
        install atomic pkg on atomic host
     '''
     Util.install_pkg_from_rhua(connection, atomic_cli, "/root/test_atomic_pkg.tar.gz")