summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2023-05-03 13:36:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-03 14:38:45 +0000
commit8e79f414b58d1ca97027312cd721dfecb636ce69 (patch)
tree0ab65b51b07a51277a1a3a58ca1c943f564ff030 /src/mongo/db/exec
parent280c055694d28c5eb8a88f9f676a92c67dc2f72f (diff)
downloadmongo-8e79f414b58d1ca97027312cd721dfecb636ce69.tar.gz
SERVER-76424 Replace 'redact' with 'hmac' in $telemetry syntax
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/projection_executor_redaction_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/exec/projection_executor_redaction_test.cpp b/src/mongo/db/exec/projection_executor_redaction_test.cpp
index ed4fd5a7793..1f4d5eb4281 100644
--- a/src/mongo/db/exec/projection_executor_redaction_test.cpp
+++ b/src/mongo/db/exec/projection_executor_redaction_test.cpp
@@ -58,7 +58,7 @@ std::unique_ptr<projection_executor::ProjectionExecutor> compileProjection(BSONO
expCtx, &ast, policies, projection_executor::kDefaultBuilderParams);
return exec;
}
-std::string redactFieldNameForTest(StringData s) {
+std::string applyHmacForTest(StringData s) {
return str::stream() << "HASH<" << s << ">";
}
@@ -66,9 +66,9 @@ TEST(Redaction, ProjectionTest) {
SerializationOptions options;
options.replacementForLiteralArgs = "?";
options.literalPolicy = LiteralSerializationPolicy::kToDebugTypeString;
- options.redactIdentifiers = true;
+ options.applyHmacToIdentifiers = true;
- options.identifierRedactionPolicy = redactFieldNameForTest;
+ options.identifierHmacPolicy = applyHmacForTest;
auto redactProj = [&](std::string obj) {
return compileProjection(fromjson(obj))->serializeTransformation(boost::none, options);
};