Skip to content

Commit 378eebd

Browse files
authored
skip Atlas Serverless tests on Windows Server 2008 (#1568)
* skip Atlas Serverless tests on Windows Server 2008 Atlas Serverless no longer appears to share cipher suites with the Windows Server 2008 hosts used for testing
1 parent 788cff4 commit 378eebd

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

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

+15-4
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,21 @@ if [[ "${ssl}" != "OFF" ]]; then
128128
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_tls12:?}&${c_timeout}"
129129
echo "Connecting to Atlas with only TLS 1.2 enabled with SRV"
130130
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_tls12_srv:?}${c_timeout}"
131-
echo "Connecting to Atlas Serverless with SRV"
132-
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_serverless_srv:?}/?${c_timeout}"
133-
echo "Connecting to Atlas Serverless"
134-
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_serverless:?}&${c_timeout}"
131+
HAS_CIPHERSUITES_FOR_SERVERLESS="YES"
132+
if [[ "${OSTYPE}" == "cygwin" ]]; then
133+
# Windows Server 2008 hosts do not appear to share TLS 1.2 cipher suites with Atlas Serverless.
134+
WINDOWS_OSNAME="$(systeminfo | grep 'OS Name:' | awk -F ':' '{print $2}')"
135+
if [[ "${WINDOWS_OSNAME}" == *"Windows Server 2008"* ]]; then
136+
echo "Detected Windows Server 2008 ... skipping Atlas Serverless test due to no shared cipher suites."
137+
HAS_CIPHERSUITES_FOR_SERVERLESS="NO"
138+
fi
139+
fi
140+
if [[ "${HAS_CIPHERSUITES_FOR_SERVERLESS}" == "YES" ]]; then
141+
echo "Connecting to Atlas Serverless with SRV"
142+
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_serverless_srv:?}/?${c_timeout}"
143+
echo "Connecting to Atlas Serverless"
144+
LD_LIBRARY_PATH="${openssl_lib_prefix}" "${ping}" "${atlas_serverless:?}&${c_timeout}"
145+
fi
135146
fi
136147

137148
echo "Authenticating using PLAIN"

0 commit comments

Comments
 (0)