WeKnora/internal/datasource/connector/ima
po-et 90e3977714 test(datasource): keep yuque and ima config tests off live DNS
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.
2026-09-15 15:03:45 +08:00
..
client.go feat(datasource/ima): sync IMA notes via the note OpenAPI 2026-08-12 14:56:25 +08:00
connector.go feat(datasource/ima): sync IMA notes via the note OpenAPI 2026-08-12 14:56:25 +08:00
connector_test.go feat(datasource/ima): sync IMA notes via the note OpenAPI 2026-08-12 14:56:25 +08:00
fake_ima_test.go test(datasource): keep yuque and ima config tests off live DNS 2026-09-15 15:03:45 +08:00
types.go feat(datasource/ima): sync IMA notes via the note OpenAPI 2026-08-12 14:56:25 +08:00
types_test.go feat(datasource/ima): sync IMA notes via the note OpenAPI 2026-08-12 14:56:25 +08:00