def testManagerSetOnline(self): """ test the setonline option parameter """ opts = Options() # default options object opts.cluster = TEST_CLUSTER opts.node = TEST_NODE opts.setonline = True Manager(opts).doit()
def testManagerSetOnlineOption(self): """ test the setonline option parameter """ opts = Options() # default options object opts.cluster = TEST_CLUSTER opts.worker = True opts.setonline = True Manager(opts)
def testManagerSetOnline(self): """ test the setonline option parameter """ opts = Options() # default options object opts.cluster = 'cubone' opts.node = 'node613' opts.setonline = True Manager(opts).doit()
def testManagerSetOnline(self): """ test the setonline option parameter """ opts = Options() # default options object opts.cluster = 'cubone' opts.node = 'node610' opts.setonline = True #TODO: fails, since no worker nodes can be found Manager(opts).doit()
def testManagerCreatorNodesFromID(self): """ test the manager constructor with a nodename option """ opts = Options() opts.cluster = 'cubone' opts.node = 'nosuchnodeid3234#%' opts.setonline = True try: Manager(opts) self.fail("manager didn't fail with unknown node selected") except NodeException: pass else: self.fail("manager didn't fail with a NodeException when an unknown node was selected") opts.node = '32x,node120' try: Manager(opts) self.fail("manager didn't fail with unknown node selected") except NodeException: pass else: self.fail("manager didn't fail with a NodeException when an unknown node was selected") opts.node = 'node323,node120Xde#' try: Manager(opts) self.fail("manager didn't fail with unknown node selected") except NodeException: pass else: self.fail("manager didn't fail with a NodeException when an unknown node was selected") opts.node = 'node323,node120' try: Manager(opts) self.fail("manager didn't fail with unknown node selected") except NodeException: pass else: self.fail("manager didn't fail with a NodeException when an unknown node was selected") opts.node = 'node613,610,magikarp' Manager(opts) opts.node = 'node613-node615' Manager(opts) opts.node = 'node610,node613-node615,magikarp' Manager(opts)
def testManagerCreatorNodesFromID(self): """ test the manager constructor with a nodename option """ opts = Options() opts.cluster = TEST_CLUSTER opts.node = 'nosuchnodeid3234#%' opts.setonline = True try: Manager(opts) self.fail("manager didn't fail with unknown node selected") except NodeException: pass else: self.fail("manager didn't fail with a NodeException when an unknown node was selected") opts.node = 'node2201,201,magikarp' Manager(opts) opts.node = 'node2201-node2205' Manager(opts) opts.node = 'node2208,node2203-node2205,magikarp' Manager(opts)