def test_rhel6_defaults_no_recipe(self):
     with session.begin():
         lc = create_lab_controller()
         system = create_x86_64_automated(lc)
         self.rhel62_server_x86_64 = create_rhel62_server_x86_64(lab_controller=lc)
         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)
 def test_rhel6_defaults_no_recipe(self):
     with session.begin():
         lc = create_lab_controller()
         system = create_x86_64_automated(lc)
         self.rhel62_server_x86_64 = create_rhel62_server_x86_64(lab_controller=lc)
         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)
 def _create_recipe(self, system=None):
     with session.begin():
         install_task = Task.by_name(u'/distribution/check-install')
         reserve_task = Task.by_name(u'/distribution/reservesys')
         lc = create_lab_controller()
         rhel62_server_x86_64 = create_rhel62_server_x86_64(lab_controller=lc)
         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
 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_server_x86_64 = create_rhel62_server_x86_64(lab_controller=lc)
         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