File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ OS=$(uname -s | tr '[:upper:]' '[:lower:]')
16
16
17
17
export REPORT_EXIT_STATUS=1
18
18
19
- if [ " $SSL " == " yes" ]; then
20
- MONGODB_URI=" ${MONGODB_URI} /?ssl=true"
19
+ if [ " $SSL " = " yes" ]; then
20
+ MONGODB_URI=" ${MONGODB_URI} /?ssl=true&sslallowinvalidcertificates=true "
21
21
fi
22
22
23
23
echo " Running $AUTH tests, connecting to $MONGODB_URI "
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ case $DEPLOYMENT in
25
25
;;
26
26
STANDALONE_SSL)
27
27
${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/standalone/standalone-ssl.json start > /tmp/mo-result.json
28
- cat /tmp/mo-result.json | tail -n 1 | php -r ' echo json_decode(file_get_contents("php://stdin"))->mongodb_uri, "/?ssl=true";' > /tmp/uri.txt
28
+ cat /tmp/mo-result.json | tail -n 1 | php -r ' echo json_decode(file_get_contents("php://stdin"))->mongodb_uri, "/?ssl=true&sslallowinvalidcertificates=true ";' > /tmp/uri.txt
29
29
;;
30
30
REPLICASET)
31
31
${TRAVIS_BUILD_DIR} /.travis.scripts/mo.sh ${TRAVIS_BUILD_DIR} /scripts/presets/travis/replica_sets/replicaset.json start > /tmp/mo-result.json
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ $command = new MongoDB\Driver\Command(['ping' => 1]);
10
10
try {
11
11
$ manager ->executeCommand ("test " , $ command );
12
12
} catch (\MongoDB \Driver \Exception \ConnectionException $ e ) {
13
- if ($ e ->getCode () == 15 ) { // Bad Wire Version
13
+ if ($ e ->getCode () == 15 ) { // MONGOC_ERROR_PROTOCOL_BAD_WIRE_VERSION
14
14
echo "Bad wire version detected: " , $ e ->getMessage (), "\n" ;
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments