From 840d48c58916c235aaf513846b04669884df2e0c Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 4 Nov 2014 18:00:10 -0500 Subject: TOOLS-276 use SSL to create user if necessary Former-commit-id: 5697ce786a2cbf0f2b899565d6672688976348c7 --- common.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common.yml b/common.yml index 56f25b0d55e..0895f829418 100644 --- a/common.yml +++ b/common.yml @@ -334,7 +334,12 @@ functions: if [ "${create_mongod_users_command}" != "" ]; then export AUTH_USERNAME=${auth_username} export AUTH_PASSWORD=${auth_password} - echo "${create_mongod_users_command}" | ./mongodb/mongo${extension} admin + if [ "${smoke_use_ssl}" != "" ] + then + echo "${create_mongod_users_command}" | ./mongodb/mongo${extension} --ssl --sslCAFile ./common/db/openssl/testdata/ca.pem --sslPEMKeyFile ./common/db/openssl/testdata/server.pem --sslAllowInvalidCertificates admin + else + echo "${create_mongod_users_command}" | ./mongodb/mongo${extension} admin + fi fi; # mongodump -- cgit v1.2.1