def setUp(self):
        logger.debug('setUp')

        self.port11 = 18888
        self.port12 = 18889
        self.port21 = 18890
        self.port22 = 18891

        pathutil.clear_folder(config_dir)
        self.params = {
            'proto': 'http',
            'target_hostname': target_hostname,
            'target_port': target_port,
            'deploy_dir': deploy_dir,
            'artifact_dir': artifact_dir,
            'log_file': log_file,
            'port11' : self.port11,
            'port12' : self.port12,
            'port21' : self.port21,
            'port22' : self.port22,
        }
        apply_config_set('valve-self-common', params=self.params)
        apply_config_set('container-no-port', params=self.params)
        apply_config_set('two-clusters-two-nodes-each', params=self.params)
        self.repose = repose.ReposeValve(config_dir=config_dir,
                                         stop_port=stop_port)
        time.sleep(25)
    def setUp(self):
        logger.debug('setUp')

        self.port = 11111

        pathutil.clear_folder(config_dir)
        params = {
            'target_hostname': target_hostname,
            'target_port': target_port,
            'deploy_dir': deploy_dir,
            'artifact_dir': artifact_dir,
            'log_file': log_file,
        }
        apply_config_set('valve-self-common', params=params)
        apply_config_set('container-no-port', params=params)
        apply_config_set('zero-nodes', params=params)
        self.repose = repose.ReposeValve(config_dir=config_dir,
                                         stop_port=stop_port)
        time.sleep(25)
    def setUp(self):
        logger.debug('setUp')

        self.init_params()

        pathutil.clear_folder(config_dir)
        self.params = {
            'proto': self.proto,
            'sysmod_port': self.sysmod_port,
            'target_hostname': target_hostname,
            'target_port': target_port,
            'cmd_line_port': self.cmd_line_port,
            'deploy_dir': deploy_dir,
            'artifact_dir': artifact_dir,
            'log_file': log_file
        }
        apply_config_set('valve-self-common', params=self.params)
        apply_config_set('single-node-with-proto', params=self.params)
        apply_config_set('container-no-port', params=self.params)
        self.repose = self.start_repose()
        time.sleep(25)
    def setUp(self):
        logger.debug('setUp')

        self.init_params()

        pathutil.clear_folder(config_dir)
        self.params = {
            'proto': self.proto,
            'sysmod_port': self.sysmod_port,
            'target_hostname': target_hostname,
            'target_port': target_port,
            'con_port': self.con_port,
            'deploy_dir': deploy_dir,
            'artifact_dir': artifact_dir,
            'log_file': log_file
        }
        apply_config_set('valve-self-common', params=self.params)
        apply_config_set('single-node-with-proto', params=self.params)
        apply_config_set(self.main_config_set_name, params=self.params)
        self.repose = repose.ReposeValve(config_dir=config_dir,
                                         stop_port=stop_port)
        time.sleep(25)
    def setUp(self):
        logger.debug('setUp')

        self.port1 = 11111
        self.port2 = 22222
        self.port3 = 33333

        pathutil.clear_folder(config_dir)
        params = {
            'proto': 'http',
            'target_hostname': target_hostname,
            'target_port': target_port,
            'sysmod_port' : self.port1,
            'deploy_dir': deploy_dir,
            'artifact_dir': artifact_dir,
            'log_file': log_file,
        }
        apply_config_set('valve-self-common', params=params)
        apply_config_set('container-no-port', params=params)
        apply_config_set('single-node-with-proto', params=params)
        self.repose = repose.ReposeValve(config_dir=config_dir,
                                         stop_port=stop_port)
        time.sleep(25)