Exemplo n.º 1
0
    def test_remove_non_rhel_kernels(self):
        removed_pkgs = pkghandler.remove_non_rhel_kernels()

        self.assertEqual(len(removed_pkgs), 6)
        self.assertEqual([p.name for p in removed_pkgs], [
            "kernel", "kernel-uek", "kernel-headers", "kernel-uek-headers",
            "kernel-firmware", "kernel-uek-firmware"
        ])
Exemplo n.º 2
0
 def test_install_additional_rhel_kernel_pkgs(self):
     removed_pkgs = pkghandler.remove_non_rhel_kernels()
     pkghandler.install_additional_rhel_kernel_pkgs(removed_pkgs)
     self.assertEqual(pkghandler.call_yum_cmd.called, 2)