diff options
Diffstat (limited to 'src/mongo/db/pipeline/expression_function_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/expression_function_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/expression_function_test.cpp b/src/mongo/db/pipeline/expression_function_test.cpp index 8c4d841a0b5..1d29fb54f05 100644 --- a/src/mongo/db/pipeline/expression_function_test.cpp +++ b/src/mongo/db/pipeline/expression_function_test.cpp @@ -40,7 +40,7 @@ namespace { /** * A default redaction strategy that generates easy to check results for testing purposes. */ -std::string redactFieldNameForTest(StringData s) { +std::string applyHmacForTest(StringData s) { return str::stream() << "HASH<" << s << ">"; } @@ -51,8 +51,8 @@ TEST(ExpressionFunction, SerializeAndRedactArgs) { std::string replacementChar = "?"; options.literalPolicy = LiteralSerializationPolicy::kToDebugTypeString; options.replacementForLiteralArgs = replacementChar; - options.redactIdentifiers = true; - options.identifierRedactionPolicy = redactFieldNameForTest; + options.applyHmacToIdentifiers = true; + options.identifierHmacPolicy = applyHmacForTest; auto expCtx = ExpressionContextForTest(); auto expr = BSON("$function" << BSON("body" |