Example #1
0
 def setUp(self):
     ret_chn = ReturnChannel(stdout_callback, {})
     command_list = load_modules()
     self.config = Config('help', '', command_list, [], ret_chn, 'shell')
     self.ldap_helper = LDAPHelper(self.config)
     self.config.import_custom_options()
     self.init_config()
    def setUp(self):
        command_list = load_modules()
        ret_chn = ReturnChannel(stdout_callback, {})
        self.config = conf_mgr.Config(self.sde_cmd, '', command_list, [], ret_chn, 'shell')

        self.init_integrator()
        self.setup_sde_configs()
        self.mock_sde_response.initialize(self.config)
        self.integrator.load_mapping_from_xml()
Example #3
0
 def setUp(self):
     self.ret_chn = ReturnChannel(stdout_callback, {})
     command_list = load_modules()
     self.conf_path = os.path.join(get_directory_of_current_module(self), CONF_FILE_LOCATION)
     self.ret_chn = ReturnChannel(stdout_callback, {})
     self.config = Config('help', '', command_list, [], self.ret_chn, 'shell')
     self.rest_client = RESTBase('sde', 'conf_name', self.config)
     self.config.import_custom_options()
     Config.parse_config_file(self.config, self.conf_path)
    def setUp(self):
        """
            Plugin setup mirrors the setup that occurs during a sync_alm call.
            Also initializes the mock responses.
        """
        command_list = load_modules()
        self.config = Config('help', '', command_list, [], self.ret_chn, 'shell')
        self.init_alm_connector()
        self.pre_parse_config()
        self.config.import_custom_options()
        self.config['alm_reference_context'] = 2
        Config.parse_config_file(self.config, self.conf_path)

        self.post_parse_config()
        self.init_response_generator()
        self.mock_sde_response.initialize(self.config)
        self.mock_alm_response.initialize(self.response_generator)
        self.connector.initialize()

        AlmConnector.init_statuses(self.connector)
 def setUp(self):
     command_list = load_modules()
     self.config = Config('help', '', command_list, [], self.ret_chn, 'shell')
     self.init_alm_connector()
     self.config.import_custom_options()
     Config.parse_config_file(self.config, self.conf_path)