2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-09 02:15:21 +00:00

[#1721] unit tests for redaction

This commit is contained in:
Andrei Pavel
2021-03-22 17:09:20 +02:00
parent 0d7c7de819
commit 7490558912
7 changed files with 163 additions and 44 deletions

View File

@@ -424,7 +424,7 @@ TEST(DatabaseConnectionTest, parseInvalid) {
EXPECT_EQ("", parameters[""]);
}
/// @brief redactConfigString test
/// @brief redactedAccessString test
///
/// Checks that the redacted configuration string includes the password only
/// as a set of asterisks.
@@ -450,7 +450,7 @@ TEST(DatabaseConnectionTest, redactAccessString) {
EXPECT_EQ("mysql", parameters["type"]);
}
/// @brief redactConfigString test - empty password
/// @brief redactedAccessString test - empty password
///
/// Checks that the redacted configuration string includes the password only
/// as a set of asterisks, even if the password is null.
@@ -494,7 +494,7 @@ TEST(DatabaseConnectionTest, redactAccessStringEmptyPassword) {
EXPECT_EQ("mysql", parameters["type"]);
}
/// @brief redactConfigString test - no password
/// @brief redactedAccessString test - no password
///
/// Checks that the redacted configuration string excludes the password if there
/// was no password to begin with.