diff options
author | Natalia Jacobowitz <nataliajacobowitz@MacBook-Pro-107.local> | 2017-06-22 17:10:24 -0400 |
---|---|---|
committer | Natalia Jacobowitz <natalia.jacobowitz@mongodb.com> | 2017-07-14 09:59:26 -0400 |
commit | baeddbb37594ebff1d5d6d45e1988d73a9e275a4 (patch) | |
tree | 6d0d81271a38e67719f66928be45544bc755958e /src/mongo/db/pipeline/document_source_match_test.cpp | |
parent | f8cb28f58485f89758a3cdca27186aa762313088 (diff) | |
download | mongo-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.cpp | 4 |
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'}"); |