diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-12-18 13:27:14 -0500 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2019-01-03 14:39:15 -0500 |
commit | 68832e1f70fa4571673ab337ae2e529b04b67e6b (patch) | |
tree | 0fadad84ebe14d3da0f42dfdbecccbe97a11b094 /src/mongo/util/net/ssl_options_test.cpp | |
parent | 006cde883229b348896f0c5935daf560f3ee89a7 (diff) | |
download | mongo-68832e1f70fa4571673ab337ae2e529b04b67e6b.tar.gz |
SERVER-38430 Rename tlsPEMKeyFile options to conform to driver URI spec
Diffstat (limited to 'src/mongo/util/net/ssl_options_test.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_options_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/util/net/ssl_options_test.cpp b/src/mongo/util/net/ssl_options_test.cpp index 2af33cb4fc2..6a701c58fbc 100644 --- a/src/mongo/util/net/ssl_options_test.cpp +++ b/src/mongo/util/net/ssl_options_test.cpp @@ -212,7 +212,7 @@ TEST(SetupOptions, tlsModeRequired) { argv.push_back("binaryname"); argv.push_back("--tlsMode"); argv.push_back("requireTLS"); - argv.push_back("--tlsPEMKeyFile"); + argv.push_back("--tlsCertificateKeyFile"); argv.push_back(sslPEMKeyFile); argv.push_back("--tlsCAFile"); argv.push_back(sslCAFFile); @@ -224,7 +224,7 @@ TEST(SetupOptions, tlsModeRequired) { argv.push_back("--tlsAllowInvalidCertificates"); argv.push_back("--tlsWeakCertificateValidation"); argv.push_back("--tlsFIPSMode"); - argv.push_back("--tlsPEMKeyPassword"); + argv.push_back("--tlsCertificateKeyFilePassword"); argv.push_back("pw1"); argv.push_back("--tlsClusterPassword"); argv.push_back("pw2"); @@ -486,7 +486,7 @@ TEST(SetupOptions, RedactionSingleName) { const std::vector<std::string> argv({"mongod", "--tlsMode", "requireTLS", - "--tlsPEMKeyPassword=qwerty", + "--tlsCertificateKeyFilePassword=qwerty", "--tlsClusterPassword", "Lose Me.", "--sslPEMKeyPassword=qwerty", @@ -495,7 +495,7 @@ TEST(SetupOptions, RedactionSingleName) { const std::vector<std::string> expected({"mongod", "--tlsMode", "requireTLS", - "--tlsPEMKeyPassword=<password>", + "--tlsCertificateKeyFilePassword=<password>", "--tlsClusterPassword", "<password>", "--sslPEMKeyPassword=<password>", @@ -508,7 +508,7 @@ TEST(SetupOptions, RedactionSingleName) { TEST(SetupOptions, RedactionDottedName) { auto obj = BSON("net" << BSON("tls" << BSON("mode" << "requireTLS" - << "PEMKeyPassword" + << "certificateKeyFilePassword" << "qwerty" << "ClusterPassword" << "qwerty") @@ -522,7 +522,7 @@ TEST(SetupOptions, RedactionDottedName) { auto res = BSON("net" << BSON("tls" << BSON("mode" << "requireTLS" - << "PEMKeyPassword" + << "certificateKeyFilePassword" << "<password>" << "ClusterPassword" << "<password>") |