Пример #1
0
 def setUpClass(cls):
     """unittest standard setUpClass method
     Runs before all test_ methods in the class
     """
     print "Setting Up Class: %s" % cls.__name__
     config = g.load_configs(
         ["examples/systems.yml", "examples/glusto.yml"])
Пример #2
0
 def setUpClass(cls):
     """unittest standard setUpClass method
     Runs before all test_ methods in the class
     """
     print "Setting Up Class: %s" % cls.__name__
     config = g.load_configs(["../examples/systems.yml",
                              "../examples/glusto.yml"])
     g.update_config(config)
def handle_configs(config_list):
    """Load user configuration files"""

    # load user specified configs
    if config_list:
        config_files = config_list.split()
        g.config = g.load_configs(config_files)
        return True

    return False
    def setUp(self):
        """unittest standard setUp method
        Runs before each test_ method
        """
        print "Setting Up: %s" % self.id()
        config = g.load_configs(["../examples/systems.yml",
                                 "../examples/glusto.yml"])
        g.update_config(config)

        self.masternode = g.config["nodes"][0]
        self.client = g.config["clients"][0]
Пример #5
0
    def setUp(self):
        """unittest standard setUp method
        Runs before each test_ method
        """
        print "Setting Up: %s" % self.id()
        config = g.load_configs(
            ["../examples/systems.yml", "../examples/glusto.yml"])
        g.update_config(config)

        self.masternode = g.config["nodes"][0]
        self.client = g.config["clients"][0]
Пример #6
0
    def setUpClass(cls):
        """unittest standard setUpClass method
        Runs before all test_ methods in the class
        """
        print "Setting Up Class: %s" % cls.__name__

        config = g.load_configs(
            ["examples/systems.yml", "examples/glusto.yml"])
        g.update_config(config)

        cls.masternode = g.config["nodes"][0]
        cls.client = g.config["clients"][0]
Пример #7
0
def handle_configs(config_list):
    """Load default and user-specified configuration files"""

    # load default config
    g.log.info("Loading default configuration files.")
    g.load_config_defaults()

    # load user specified configs (can also override defaults)
    if (config_list):
        g.log.info("Loading user specified configuration files.")
        config_files = config_list.split()
        config = g.load_configs(config_files)
        g.update_config(config)
Пример #8
0
def handle_configs(config_list):
    """Load default and user-specified configuration files"""

    # load default config
    g.log.info("Loading default configuration files.")
    g.load_config_defaults()

    # load user specified configs (can also override defaults)
    if (config_list):
        g.log.info("Loading user specified configuration files.")
        config_files = config_list.split()
        config = g.load_configs(config_files)
        g.update_config(config)
Пример #9
0
    def setUpClass(cls):
        """unittest standard setUpClass method
        Runs before all test_ methods in the class
        """
        print "Setting Up Class: %s" % cls.__name__
        config = g.load_configs(
            ["../examples/systems.yml", "../examples/glusto.yml"])
        g.update_config(config)

        cls.hosts = g.config['nodes']
        cls.primary_host = g.config['nodes'][0]
        cls.client = g.config["clients"][0]

        cls.test_string = 'Go for the Glusto!'
Пример #10
0
    def setUpClass(cls):
        """unittest standard setUpClass method
        Runs before all test_ methods in the class
        """
        print "Setting Up Class: %s" % cls.__name__
        config = g.load_configs(["../examples/systems.yml",
                                 "../examples/glusto.yml"])
        g.update_config(config)

        cls.hosts = g.config['nodes']
        cls.primary_host = g.config['nodes'][0]
        cls.client = g.config["clients"][0]

        cls.test_string = 'Go for the Glusto!'