Пример #1
0
 def testSchedulerOptions(self):
     """
     test the cheduler options
     """
     opts = Options()  # default options object
     opts.cluster = TEST_CLUSTER
     opts.pause = True
     Manager(opts)
     opts.resume = True
     Manager(opts)
     opts.pause = False
     opts.resume = True
     Manager(opts)
     Manager(opts).doit()
     opts.restart = True
     try:
         if Manager(opts).doit():
             self.fail("Scheduler restart ran without the --force option")
     except Exception, ex:
         self.fail("Scheduler restart failed with ex %s" % ex)
         print traceback.format_exc()