mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
fix: Check result of parsing config (#1829)
This commit is contained in:
@@ -31,7 +31,7 @@ TEST(VerifyConfigTest, InvalidConfig)
|
||||
auto const tmpConfigFile = TmpFile(kJSON_DATA);
|
||||
|
||||
// false because json data(kJSON_DATA) is not compatible with current configDefintion
|
||||
EXPECT_FALSE(verifyConfig(tmpConfigFile.path));
|
||||
EXPECT_FALSE(parseConfig(tmpConfigFile.path));
|
||||
}
|
||||
|
||||
TEST(VerifyConfigTest, ValidConfig)
|
||||
@@ -46,12 +46,12 @@ TEST(VerifyConfigTest, ValidConfig)
|
||||
auto const tmpConfigFile = TmpFile(kVALID_JSON_DATA);
|
||||
|
||||
// current example config should always be compatible with configDefinition
|
||||
EXPECT_TRUE(verifyConfig(tmpConfigFile.path));
|
||||
EXPECT_TRUE(parseConfig(tmpConfigFile.path));
|
||||
}
|
||||
|
||||
TEST(VerifyConfigTest, ConfigFileNotExist)
|
||||
{
|
||||
EXPECT_FALSE(verifyConfig("doesn't exist Config File"));
|
||||
EXPECT_FALSE(parseConfig("doesn't exist Config File"));
|
||||
}
|
||||
|
||||
TEST(VerifyConfigTest, InvalidJsonFile)
|
||||
@@ -65,5 +65,5 @@ TEST(VerifyConfigTest, InvalidJsonFile)
|
||||
})";
|
||||
auto const tmpConfigFile = TmpFile(kINVALID_JSON);
|
||||
|
||||
EXPECT_FALSE(verifyConfig(tmpConfigFile.path));
|
||||
EXPECT_FALSE(parseConfig(tmpConfigFile.path));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user