Commit 9fee5541 authored by jan.koester's avatar jan.koester
Browse files

test

parent b2a615f5
Loading
Loading
Loading
Loading
+15 −0
Changes for test/test_bootstrapconfig.cpp: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -55,6 +55,21 @@ proxyplus:
    assert(app.smtpListeners.size() == 1);
    assert(app.smtpListeners[0].port == 2525);
    assert(app.logLevel == "info"); // default applied
    assert(app.authdbTlsVerify == true); // default applied

    // authdb_tls_verify: false -- e.g. authdbPath addresses authdb by bare IP
    writeFile(path, R"YAML(
proxyplus:
  node:
    id: "node-01"
    name: "proxyplus-test"
  paths:
    data: "/tmp/proxyplus_test_data"
    authdb: "https://10.1.2.80/api/domain"
    authdb_tls_verify: false
)YAML");
    BootstrapConfig noverify(path);
    assert(noverify.get().authdbTlsVerify == false);

    // Missing required field -> ConfigValidationError
    writeFile(path, R"YAML(