parseYuqueConfig and parseIMAConfig validate DefaultBaseURL through ValidateConnectorBaseURL, which resolves the host with net.LookupIP. Their TestMain only whitelists loopback, so the config tests fail on any machine where www.yuque.com or ima.qq.com resolves to a restricted address (a local DNS sinkhole, for example), and the result depends on the network the tests happen to run on. Whitelist the default host as well, which is what the feishu tests already do for open.feishu.cn. |
||
|---|---|---|
| .. | ||
| client.go | ||
| connector.go | ||
| connector_test.go | ||
| fake_ima_test.go | ||
| types.go | ||
| types_test.go | ||