Skip to content

Commit faabc9a

Browse files
authored
CDRIVER-5645 skip auth tests running against MongoDB 3.6. (#1681)
1 parent ae91cf1 commit faabc9a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.evergreen/scripts/run-auth-tests.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,16 @@ elif command -v otool >/dev/null; then
100100
fi
101101

102102
if [[ "${ssl}" != "OFF" ]]; then
103+
{
104+
# Skip 3.6. Remove this block when resolving CDRIVER-5645.
105+
echo "Skipping tests on server 3.6 (using 'auth_host' or 'auth_gssapi') until DEVPROD-9029 is addressed."
106+
} || {
103107
# FIXME: CDRIVER-2008 for the cygwin check
104108
if [[ "${OSTYPE}" != "cygwin" ]]; then
105109
echo "Authenticating using X.509"
106110
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "mongodb://CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New York,C=US@${auth_host}/?ssl=true&authMechanism=MONGODB-X509&sslClientCertificateKeyFile=src/libmongoc/tests/x509gen/ldaptest-client-key-and-cert.pem&sslCertificateAuthorityFile=src/libmongoc/tests/x509gen/ldaptest-ca-cert.crt&sslAllowInvalidHostnames=true&${c_timeout}"
107111
fi
108-
112+
}
109113
echo "Connecting to Atlas Free Tier"
110114
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_free:?}&${c_timeout}"
111115
echo "Connecting to Atlas Free Tier with SRV"
@@ -145,6 +149,10 @@ if [[ "${ssl}" != "OFF" ]]; then
145149
fi
146150
fi
147151

152+
{
153+
# Skip 3.6. Remove this block when resolving CDRIVER-5645.
154+
echo "Skipping tests on server 3.6 (using 'auth_host' or 'auth_gssapi') until DEVPROD-9029 is addressed."
155+
} || {
148156
echo "Authenticating using PLAIN"
149157
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "mongodb://${auth_plain:?}@${auth_host}/?authMechanism=PLAIN&${c_timeout}"
150158

@@ -174,3 +182,4 @@ if [[ "${sasl}" != "OFF" ]]; then
174182
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "mongodb://${auth_gssapi_utf8:?}@${auth_host}/?authMechanism=GSSAPI&${c_timeout}"
175183
fi
176184
fi
185+
}

0 commit comments

Comments
 (0)