def testManagerSetOffline(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = TEST_CLUSTER opts.node = TEST_NODE opts.setoffline = True Manager(opts).doit()
def testManagerSetOfflineOption(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = TEST_CLUSTER opts.worker = True opts.setoffline = True Manager(opts)
def testManagerSetOffline(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = 'cubone' opts.node = 'node610' opts.setoffline = True Manager(opts).doit()
def testAck(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = TEST_CLUSTER opts.node = 'node2201-node2208' opts.setoffline = True opts.ack = True Manager(opts)
def testAck(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = 'cubone' opts.node = 'node610-617' opts.setoffline = True opts.ack = True Manager(opts)
def testDowntime(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = TEST_CLUSTER opts.node = 'node2201-node2208' opts.setoffline = True opts.downtime = "2 m" Manager(opts) # should fail opts.downtime = "2h" Manager(opts)
def testDowntime(self): """ test the setoffline option parameter """ opts = Options() # default options object opts.cluster = 'cubone' opts.node = 'node610-617' opts.setoffline = True opts.downtime = "2 m" Manager(opts) # should fail opts.downtime = "2h" Manager(opts)