Skip to content

Commit 52465eb

Browse files
committed
CSHARP-1845: Code review changes.
1 parent 114d7de commit 52465eb

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

evergreen/run-plain-auth-tests.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ set -o errexit # Exit the script with error if any of the commands fail
55

66
# Supported/used environment variables:
77
# MONGODB_URI Set the URI, including username/password to use to connect to the server via PLAIN authentication mechanism
8-
# JDK Set the version of java to be used. Java versions can be set from the java toolchain /opt/java
9-
# "jdk5", "jdk6", "jdk7", "jdk8"
10-
11-
JDK=${JDK:-jdk}
12-
JAVA_HOME="/opt/java/${JDK}"
138

149
############################################
1510
# Main Program #

evergreen/run-tests.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,6 @@ SSL=${SSL:-nossl}
1515
MONGODB_URI=${MONGODB_URI:-}
1616
TOPOLOGY=${TOPOLOGY:-server}
1717

18-
############################################
19-
# Functions #
20-
############################################
21-
22-
provision_ssl () {
23-
echo "SSL !"
24-
25-
# We generate the keystore and truststore on every run with the certs in the drivers-tools repo
26-
if [ ! -f client.pkc ]; then
27-
openssl pkcs12 -CAfile ${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem -export -in ${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem -out client.pkc -password pass:bithere
28-
fi
29-
30-
# We add extra gradle arguments for SSL
31-
export GRADLE_EXTRA_VARS="-Pssl.enabled=true -Pssl.keyStoreType=pkcs12 -Pssl.keyStore=`pwd`/client.pkc -Pssl.keyStorePassword=bithere -Pssl.trustStoreType=jks -Pssl.trustStore=`pwd`/mongo-truststore -Pssl.trustStorePassword=hithere"
32-
export ASYNC_TYPE="-Dorg.mongodb.async.type=netty"
33-
34-
# Arguments for auth + SSL
35-
if [ "$AUTH" != "noauth" ] || [ "$TOPOLOGY" == "replica_set" ]; then
36-
export MONGODB_URI="${MONGODB_URI}&ssl=true&sslInvalidHostNameAllowed=true"
37-
else
38-
export MONGODB_URI="${MONGODB_URI}/?ssl=true&sslInvalidHostNameAllowed=true"
39-
fi
40-
}
41-
4218
############################################
4319
# Main Program #
4420
############################################
@@ -53,9 +29,6 @@ if [ "$TOPOLOGY" == "sharded_cluster" ]; then
5329
fi
5430
fi
5531

56-
if [ "$SSL" != "nossl" ]; then
57-
provision_ssl
58-
fi
5932
echo "Running $AUTH tests over $SSL for $TOPOLOGY and connecting to $MONGODB_URI"
6033

6134
if [ "$FRAMEWORK" == "netcore10" ]; then

0 commit comments

Comments
 (0)