mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-21 12:40:51 +00:00
feat: Validate unexpected config values (#2457)
This commit is contained in:
@@ -81,7 +81,8 @@ class SettingsProviderTest : public NoLoggerFixture {};
|
||||
|
||||
TEST_F(SettingsProviderTest, Defaults)
|
||||
{
|
||||
auto const cfg = getParseSettingsConfig(json::parse(R"JSON({"contact_points": "127.0.0.1"})JSON"));
|
||||
auto const cfg =
|
||||
getParseSettingsConfig(json::parse(R"JSON({"database.cassandra.contact_points": "127.0.0.1"})JSON"));
|
||||
SettingsProvider const provider{cfg.getObject("database.cassandra")};
|
||||
|
||||
auto const settings = provider.getSettings();
|
||||
|
||||
Reference in New Issue
Block a user