示例#1
0
 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()
示例#2
0
 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)
示例#3
0
 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()
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)
示例#7
0
 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)