Exemple #1
0
 def _log_suite_config(self, suite):
     sb = [
         "YAML configuration of suite {}".format(suite.get_display_name()),
         utils.dump_yaml({"test_kind": suite.get_test_kind_config()}), "",
         utils.dump_yaml({"selector": suite.get_selector_config()}), "",
         utils.dump_yaml({"executor": suite.get_executor_config()}), "",
         utils.dump_yaml({"logging": self._config.logging_config})
     ]
     self._resmoke_logger.info("\n".join(sb))
Exemple #2
0
 def _log_suite_config(self, suite):
     sb = [
         "YAML configuration of suite {}".format(suite.get_display_name()),
         utils.dump_yaml({"test_kind": suite.get_test_kind_config()}), "",
         utils.dump_yaml({"selector": suite.get_selector_config()}), "",
         utils.dump_yaml({"executor": suite.get_executor_config()}), "",
         utils.dump_yaml({"logging": self._config.logging_config})
     ]
     self._resmoke_logger.info("\n".join(sb))
Exemple #3
0
def fuzz_set_parameters(seed, user_provided_params):
    """Randomly generate mongod configurations and wiredTigerConnectionString."""
    rng = random.Random(seed)

    ret = {}
    params = [generate_flow_control_parameters(rng), generate_independent_parameters(rng)]
    for dct in params:
        for key, value in dct.items():
            ret[key] = value

    for key, value in utils.load_yaml(user_provided_params).items():
        ret[key] = value

    return utils.dump_yaml(ret), generate_eviction_configs(rng)
 def _merge_set_params(param_list):
     ret = {}
     for set_param in param_list:
         ret.update(utils.load_yaml(set_param))
     return utils.dump_yaml(ret)