feat: add ignore-certificate-errors option for self-signed TLS

This commit is contained in:
2026-08-28 09:58:58 -06:00
parent f98043c21b
commit 973d5686fc
14 changed files with 149 additions and 8 deletions
+4 -1
View File
@@ -16,10 +16,13 @@ test("cfgFromSettings defaults baseUrl and omits empty apiKey", () => {
const cfg = cfgFromSettings({});
assert.equal(cfg.baseUrl, "http://localhost:9292");
assert.equal(cfg.apiKey, undefined);
assert.deepEqual(cfgFromSettings({ baseUrl: "http://x/", apiKey: "abc" }), {
assert.equal(cfg.insecure, false);
assert.deepEqual(cfgFromSettings({ baseUrl: "http://x/", apiKey: "abc", insecure: true }), {
baseUrl: "http://x",
apiKey: "abc",
insecure: true,
});
assert.equal(cfgFromSettings({ insecure: "yes" }).insecure, false);
});
test("shorten keeps short names and truncates long ones", () => {