Exemplo n.º 1
0
 def test_rhel6_defaults_no_recipe(self):
     with session.begin():
         lc = create_lab_controller()
         system = create_x86_64_automated(lc)
         self.rhel62 = create_rhel62()
         self.rhel62_server_x86_64 = create_rhel62_server_x86_64(lab_controller=lc, distro=self.rhel62)
         user = create_user()
     session.expire_all()
     distro_tree_id = self.rhel62_server_x86_64.id
     generated_ks = self._run_create_kickstart(['--distro-tree-id',
         str(distro_tree_id), '--system', system.fqdn, '--user', user.user_name])
     compare_expected('RedHatEnterpriseLinux6-manual-defaults-beaker-create-kickstart', None,
            generated_ks)
Exemplo n.º 2
0
 def _create_recipe(self, system=None):
     with session.begin():
         install_task = Task.by_name('/distribution/install')
         reserve_task = Task.by_name('/distribution/reservesys')
         lc = create_lab_controller()
         rhel62 = create_rhel62()
         rhel62_server_x86_64 = create_rhel62_server_x86_64(lab_controller=lc, distro=rhel62)
         if not system:
             system = create_x86_64_automated(lc)
         recipe = data_setup.create_recipe(distro_tree=rhel62_server_x86_64, task_list=[install_task, reserve_task])
         data_setup.create_job_for_recipes([recipe], owner=create_user(), whiteboard='')
         data_setup.mark_recipe_complete(recipe, system=system)
     self.recipe_id = recipe.id
     return recipe
Exemplo n.º 3
0
 def test_rhel6_defaults_no_recipe(self):
     with session.begin():
         lc = create_lab_controller()
         system = create_x86_64_automated(lc)
         self.rhel62 = create_rhel62()
         self.rhel62_server_x86_64 = create_rhel62_server_x86_64(
             lab_controller=lc, distro=self.rhel62)
         user = create_user()
     session.expire_all()
     distro_tree_id = self.rhel62_server_x86_64.id
     generated_ks = self._run_create_kickstart([
         '--distro-tree-id',
         str(distro_tree_id), '--system', system.fqdn, '--user',
         user.user_name
     ])
     compare_expected(
         'RedHatEnterpriseLinux6-manual-defaults-beaker-create-kickstart',
         None, generated_ks)
Exemplo n.º 4
0
 def _create_recipe(self, system=None):
     with session.begin():
         install_task = Task.by_name(u'/distribution/install')
         reserve_task = Task.by_name(u'/distribution/reservesys')
         lc = create_lab_controller()
         rhel62 = create_rhel62()
         rhel62_server_x86_64 = create_rhel62_server_x86_64(
             lab_controller=lc, distro=rhel62)
         if not system:
             system = create_x86_64_automated(lc)
         recipe = data_setup.create_recipe(
             distro_tree=rhel62_server_x86_64,
             task_list=[install_task, reserve_task])
         data_setup.create_job_for_recipes([recipe],
                                           owner=create_user(),
                                           whiteboard=u'')
         data_setup.mark_recipe_complete(recipe, system=system)
     self.recipe_id = recipe.id
     return recipe