diff options
| author | Jacob Evans <jacob.evans@10gen.com> | 2022-09-19 20:18:54 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-19 21:14:49 +0000 |
| commit | f3ef9c28abd837fdfae34800ce4fafcd11aa7739 (patch) | |
| tree | 0bcf36bdcd7c8b713abdfd62570d14d43c04c3e7 /src | |
| parent | 01414fd3f2bc599a651a1b89536b142974784f37 (diff) | |
| download | mongo-f3ef9c28abd837fdfae34800ce4fafcd11aa7739.tar.gz | |
SERVER-65318 Re-enable Expression Type Test
Diffstat (limited to 'src')
| -rw-r--r-- | src/mongo/db/matcher/expression_type_test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/matcher/expression_type_test.cpp b/src/mongo/db/matcher/expression_type_test.cpp index f927c787e1f..3e52e501dc8 100644 --- a/src/mongo/db/matcher/expression_type_test.cpp +++ b/src/mongo/db/matcher/expression_type_test.cpp @@ -321,7 +321,6 @@ TEST(InternalSchemaBinDataEncryptedTypeTest, DoesNotTraverseLeafArrays) { ASSERT_FALSE(expr.matchesBSON(BSON("a" << BSONArray()))); } -/* TODO: SERVER-64113 TEST(InternalSchemaBinDataEncryptedTypeTest, DoesNotMatchShortBinData) { MatcherTypeSet typeSet; typeSet.bsonTypes.insert(BSONType::String); @@ -329,15 +328,16 @@ TEST(InternalSchemaBinDataEncryptedTypeTest, DoesNotMatchShortBinData) { InternalSchemaBinDataEncryptedTypeExpression expr("a", std::move(typeSet)); FleBlobHeader blob; - blob.fleBlobSubtype = FleBlobSubtype::Deterministic; + blob.fleBlobSubtype = static_cast<int8_t>(EncryptedBinDataType::kDeterministic); memset(blob.keyUUID, 0, sizeof(blob.keyUUID)); blob.originalBsonType = BSONType::String; - auto binData = BSONBinData( - reinterpret_cast<const void*>(&blob), sizeof(FleBlobHeader) - sizeof(blob.originalBsonType), -BinDataType::Encrypt); + auto binData = BSONBinData(reinterpret_cast<const void*>(&blob), + sizeof(FleBlobHeader) - sizeof(blob.originalBsonType), + BinDataType::Encrypt); - ASSERT_FALSE(expr.matchesBSON(BSON("a" << binData << "foo" << "bar"))); -} */ + ASSERT_FALSE(expr.matchesBSON(BSON("a" << binData << "foo" + << "bar"))); +} TEST(InternalSchemaBinDataFLE2EncryptedTypeTest, DoesNotTraverseLeafArrays) { InternalSchemaBinDataFLE2EncryptedTypeExpression expr("a", BSONType::String); |
