def __init__(self, util_info):
self.logger.debug("init test exec")
self.util = Utilvnf()
credentials = util_info["credentials"]
self.vnf_ctrl = VnfController(util_info)
test_cmd_map_file = open(self.util.vnf_data_dir +
self.util.opnfv_vnf_data_dir +
self.util.command_template_dir +
self.util.test_cmd_map_yaml_file,
'r')
self.test_cmd_map_yaml = yaml.safe_load(test_cmd_map_file)
test_cmd_map_file.close()
self.util.set_credentials(credentials["snaps_creds"])
with open(self.util.test_env_config_yaml) as file_fd:
test_env_config_yaml = yaml.safe_load(file_fd)
file_fd.close()
self.protocol_stable_wait = test_env_config_yaml.get("general").get(
"protocol_stable_wait")
评论列表
文章目录