Example #1
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)
Example #2
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)