feat: add ignore-certificate-errors option for self-signed TLS
This commit is contained in:
+4
-1
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user