summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_match_test.cpp
diff options
context:
space:
mode:
authorNatalia Jacobowitz <nataliajacobowitz@MacBook-Pro-107.local>2017-06-22 17:10:24 -0400
committerNatalia Jacobowitz <natalia.jacobowitz@mongodb.com>2017-07-14 09:59:26 -0400
commitbaeddbb37594ebff1d5d6d45e1988d73a9e275a4 (patch)
tree6d0d81271a38e67719f66928be45544bc755958e /src/mongo/db/pipeline/document_source_match_test.cpp
parentf8cb28f58485f89758a3cdca27186aa762313088 (diff)
downloadmongo-baeddbb37594ebff1d5d6d45e1988d73a9e275a4.tar.gz
SERVER-29581 Create $_internalSchemaMinLength and $_internalSchemaMaxLength MatchExpressions
Diffstat (limited to 'src/mongo/db/pipeline/document_source_match_test.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_match_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_match_test.cpp b/src/mongo/db/pipeline/document_source_match_test.cpp
index 9ee753078a4..36914f34093 100644
--- a/src/mongo/db/pipeline/document_source_match_test.cpp
+++ b/src/mongo/db/pipeline/document_source_match_test.cpp
@@ -112,6 +112,10 @@ TEST_F(DocumentSourceMatchTest, RedactSafePortion) {
assertExpectedRedactSafePortion("{a: {$_internalSchemaUniqueItems: true}}", "{}");
+ assertExpectedRedactSafePortion("{a: {$_internalSchemaMinLength: 1}}", "{}");
+
+ assertExpectedRedactSafePortion("{a: {$_internalSchemaMaxLength: 1}}", "{}");
+
// Combinations
assertExpectedRedactSafePortion("{a:1, b: 'asdf'}", "{a:1, b: 'asdf'}");