File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ set -o errexit # Exit the script with error if any of the commands fail
5
5
6
6
# Supported/used environment variables:
7
7
# 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} "
13
8
14
9
# ###########################################
15
10
# Main Program #
Original file line number Diff line number Diff line change @@ -15,30 +15,6 @@ SSL=${SSL:-nossl}
15
15
MONGODB_URI=${MONGODB_URI:- }
16
16
TOPOLOGY=${TOPOLOGY:- server}
17
17
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
-
42
18
# ###########################################
43
19
# Main Program #
44
20
# ###########################################
@@ -53,9 +29,6 @@ if [ "$TOPOLOGY" == "sharded_cluster" ]; then
53
29
fi
54
30
fi
55
31
56
- if [ " $SSL " != " nossl" ]; then
57
- provision_ssl
58
- fi
59
32
echo " Running $AUTH tests over $SSL for $TOPOLOGY and connecting to $MONGODB_URI "
60
33
61
34
if [ " $FRAMEWORK " == " netcore10" ]; then
You can’t perform that action at this time.
0 commit comments