diff --git a/mongo/client_side_encryption_examples_test.go b/mongo/client_side_encryption_examples_test.go index 85bd4be074..2680849013 100644 --- a/mongo/client_side_encryption_examples_test.go +++ b/mongo/client_side_encryption_examples_test.go @@ -30,7 +30,7 @@ func Example_clientSideEncryption() { "key": localKey, }, } - keyVaultNamespace := "admin.datakeys" + keyVaultNamespace := "encryption.__keyVault" uri := "mongodb://localhost:27017" autoEncryptionOpts := options.AutoEncryption(). @@ -68,7 +68,7 @@ func Example_clientSideEncryption() { } func Example_clientSideEncryptionCreateKey() { - keyVaultNamespace := "admin.datakeys" + keyVaultNamespace := "encryption.__keyVault" uri := "mongodb://localhost:27017" // kmsProviders would have to be populated with the correct KMS provider // information before it's used.