diff options
Diffstat (limited to 'src/mongo/crypto/fle_crypto_test.cpp')
| -rw-r--r-- | src/mongo/crypto/fle_crypto_test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/crypto/fle_crypto_test.cpp b/src/mongo/crypto/fle_crypto_test.cpp index 9e9b4d9269f..2d234f62ae5 100644 --- a/src/mongo/crypto/fle_crypto_test.cpp +++ b/src/mongo/crypto/fle_crypto_test.cpp @@ -1260,7 +1260,7 @@ EncryptedFieldConfig getTestEncryptedFieldConfig() { ] })"; - return EncryptedFieldConfig::parse(IDLParserErrorContext("root"), fromjson(schema)); + return EncryptedFieldConfig::parse(IDLParserContext("root"), fromjson(schema)); } TEST(EncryptionInformation, RoundTrip) { @@ -1271,7 +1271,7 @@ TEST(EncryptionInformation, RoundTrip) { EncryptedFieldConfig efc2 = EncryptionInformationHelpers::getAndValidateSchema( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)); + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)); ASSERT_BSONOBJ_EQ(efc.toBSON(), efc2.toBSON()); } @@ -1287,7 +1287,7 @@ TEST(EncryptionInformation, BadSchema) { NamespaceString ns("test.test"); ASSERT_THROWS_CODE(EncryptionInformationHelpers::getAndValidateSchema( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)), + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)), DBException, 6371205); } @@ -1300,7 +1300,7 @@ TEST(EncryptionInformation, MissingStateCollection) { efc.setEscCollection(boost::none); auto obj = EncryptionInformationHelpers::encryptionInformationSerialize(ns, efc); ASSERT_THROWS_CODE(EncryptionInformationHelpers::getAndValidateSchema( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)), + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)), DBException, 6371207); } @@ -1309,7 +1309,7 @@ TEST(EncryptionInformation, MissingStateCollection) { efc.setEccCollection(boost::none); auto obj = EncryptionInformationHelpers::encryptionInformationSerialize(ns, efc); ASSERT_THROWS_CODE(EncryptionInformationHelpers::getAndValidateSchema( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)), + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)), DBException, 6371206); } @@ -1318,7 +1318,7 @@ TEST(EncryptionInformation, MissingStateCollection) { efc.setEcocCollection(boost::none); auto obj = EncryptionInformationHelpers::encryptionInformationSerialize(ns, efc); ASSERT_THROWS_CODE(EncryptionInformationHelpers::getAndValidateSchema( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)), + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)), DBException, 6371208); } @@ -1412,7 +1412,7 @@ TEST(DeleteTokens, Fetch) { EncryptionInformationHelpers::encryptionInformationSerializeForDelete(ns, efc, &keyVault); auto tokenMap = EncryptionInformationHelpers::getDeleteTokens( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)); + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)); ASSERT_EQ(tokenMap.size(), 2); @@ -1815,7 +1815,7 @@ TEST(FLE_Update, PullTokens) { EncryptionInformationHelpers::encryptionInformationSerializeForDelete(ns, efc, &keyVault); auto tokenMap = EncryptionInformationHelpers::getDeleteTokens( - ns, EncryptionInformation::parse(IDLParserErrorContext("foo"), obj)); + ns, EncryptionInformation::parse(IDLParserContext("foo"), obj)); ASSERT_EQ(tokenMap.size(), 2); |
