示例#1
0
    def testManagerCreatorNodeOptions(self):
        """
        test the manager constructor
        """
#        debug = True cluster = None chassis = None down = False all = False
#        idle = False offline = False node = ""
        opts = Options()  # default options object
        opts.cluster = TEST_CLUSTER
        Manager(opts)  # should create a manager

        opts.down = True
        Manager(opts)  # should create a manager

        opts.idle = True
        Manager(opts)  # should create a manager

        opts.offline = True
        Manager(opts)  # should create a manager

        opts.master = "master7"
        Manager(opts)  # should create a manager