fn test_from_yaml_file()

in shenyu-client-rust/src/config.rs [88:96]


    fn test_from_yaml_file() {
        let current_dir = env::current_dir().expect("Failed to get current directory");
        let config_path = current_dir.join("config.yml");
        print!("config_path: {:?}", config_path);
        let config = ShenYuConfig::from_yaml_file(config_path.to_str().unwrap()).unwrap();
        assert_eq!(config.register.register_type, "http");
        assert_eq!(config.register.servers, "http://127.0.0.1:9095");
        assert_eq!(config.register.props.len(), 2);
    }