@@ -409,9 +409,9 @@ func TestFLE2CreateCollection(t *testing.T) {
409
409
410
410
efJSON := `
411
411
{
412
- "escCollection": "encryptedCollection.esc",
413
- "eccCollection": "encryptedCollection.ecc",
414
- "ecocCollection": "encryptedCollection.ecoc",
412
+ "escCollection": "enxcol_. encryptedCollection.esc",
413
+ "eccCollection": "enxcol_. encryptedCollection.ecc",
414
+ "ecocCollection": "enxcol_. encryptedCollection.ecoc",
415
415
"fields": [
416
416
{
417
417
"path": "firstName",
@@ -435,11 +435,11 @@ func TestFLE2CreateCollection(t *testing.T) {
435
435
mt .Run ("CreateCollection from encryptedFields" , func (mt * mtest.T ) {
436
436
// Drop data and state collections to clean up from a prior test run.
437
437
{
438
- err = mt .DB .Collection ("encryptedCollection.esc" ).Drop (context .Background ())
438
+ err = mt .DB .Collection ("enxcol_. encryptedCollection.esc" ).Drop (context .Background ())
439
439
assert .Nil (mt , err , "error in Drop: %v" , err )
440
- err = mt .DB .Collection ("encryptedCollection.ecc" ).Drop (context .Background ())
440
+ err = mt .DB .Collection ("enxcol_. encryptedCollection.ecc" ).Drop (context .Background ())
441
441
assert .Nil (mt , err , "error in Drop: %v" , err )
442
- err = mt .DB .Collection ("encryptedCollection.ecoc" ).Drop (context .Background ())
442
+ err = mt .DB .Collection ("enxcol_. encryptedCollection.ecoc" ).Drop (context .Background ())
443
443
assert .Nil (mt , err , "error in Drop: %v" , err )
444
444
err := mt .DB .Collection ("coll" ).Drop (context .Background ())
445
445
assert .Nil (mt , err , "error in Drop: %v" , err )
@@ -453,17 +453,17 @@ func TestFLE2CreateCollection(t *testing.T) {
453
453
assert .Nil (mt , err , "error in ListCollectionNames" )
454
454
assert .Equal (mt , got , []string {"coll" }, "expected ['coll'], got: %v" , got )
455
455
456
- got , err = mt .DB .ListCollectionNames (context .Background (), bson.D {{"name" , "encryptedCollection.esc" }})
456
+ got , err = mt .DB .ListCollectionNames (context .Background (), bson.D {{"name" , "enxcol_. encryptedCollection.esc" }})
457
457
assert .Nil (mt , err , "error in ListCollectionNames" )
458
- assert .Equal (mt , got , []string {"encryptedCollection.esc" }, "expected ['encryptedCollection.esc'], got: %v" , got )
458
+ assert .Equal (mt , got , []string {"enxcol_. encryptedCollection.esc" }, "expected ['encryptedCollection.esc'], got: %v" , got )
459
459
460
- got , err = mt .DB .ListCollectionNames (context .Background (), bson.D {{"name" , "encryptedCollection.ecc" }})
460
+ got , err = mt .DB .ListCollectionNames (context .Background (), bson.D {{"name" , "enxcol_. encryptedCollection.ecc" }})
461
461
assert .Nil (mt , err , "error in ListCollectionNames" )
462
- assert .Equal (mt , got , []string {"encryptedCollection.ecc" }, "expected ['encryptedCollection.ecc'], got: %v" , got )
462
+ assert .Equal (mt , got , []string {"enxcol_. encryptedCollection.ecc" }, "expected ['encryptedCollection.ecc'], got: %v" , got )
463
463
464
- got , err = mt .DB .ListCollectionNames (context .Background (), bson.D {{"name" , "encryptedCollection.ecoc" }})
464
+ got , err = mt .DB .ListCollectionNames (context .Background (), bson.D {{"name" , "enxcol_. encryptedCollection.ecoc" }})
465
465
assert .Nil (mt , err , "error in ListCollectionNames" )
466
- assert .Equal (mt , got , []string {"encryptedCollection.ecoc" }, "expected ['encryptedCollection.ecoc'], got: %v" , got )
466
+ assert .Equal (mt , got , []string {"enxcol_. encryptedCollection.ecoc" }, "expected ['encryptedCollection.ecoc'], got: %v" , got )
467
467
468
468
indexSpecs , err := mt .DB .Collection ("coll" ).Indexes ().ListSpecifications (context .Background ())
469
469
assert .Nil (mt , err , "error in Indexes().ListSpecifications: %v" , err )
0 commit comments