Skip to content

Commit b80d00f

Browse files
authored
CDRIVER-4068 add connectivity tests for serverless (#839)
1 parent fdc2de4 commit b80d00f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ functions:
479479
export REQUIRE_TLS12='${require_tls12}'
480480
export OBSOLETE_TLS='${obsolete_tls}'
481481
export VALGRIND='${valgrind}'
482+
export ATLAS_SERVERLESS_SRV='${atlas_serverless_srv}'
483+
export ATLAS_SERVERLESS='${atlas_serverless}'
482484
sh .evergreen/run-auth-tests.sh
483485
run mock server tests:
484486
- command: shell.exec

.evergreen/run-auth-tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ set +o xtrace # Don't echo commands
2222
# REQUIRE_TLS12=${require_tls12} # libmongoc requires TLS 1.2+
2323
# OBSOLETE_TLS=${obsolete_tls} # libmongoc was built with old TLS lib, don't try connecting to Atlas
2424
# VALGRIND=${valgrind} # Whether to run with valgrind
25+
# ATLAS_SERVERLESS_SRV=${atlas_serverless_srv} # Evergreen variable
26+
# ATLAS_SERVERLESS=${atlas_serverless} # Evergreen variable
2527

2628

2729
C_TIMEOUT="connectTimeoutMS=30000&serverSelectionTryOnce=false"
@@ -112,6 +114,10 @@ if [ $SSL -eq 1 ]; then
112114
$PING "$ATLAS_TLS12&${C_TIMEOUT}"
113115
echo "Connecting to Atlas with only TLS 1.2 enabled with SRV"
114116
$PING "$ATLAS_TLS12_SRV${C_TIMEOUT}"
117+
echo "Connecting to Atlas Serverless with SRV"
118+
$PING "$ATLAS_SERVERLESS_SRV/?${C_TIMEOUT}"
119+
echo "Connecting to Atlas Serverless"
120+
$PING "$ATLAS_SERVERLESS&${C_TIMEOUT}"
115121
fi
116122
fi
117123

build/evergreen_config_lib/functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@
340340
export REQUIRE_TLS12='${require_tls12}'
341341
export OBSOLETE_TLS='${obsolete_tls}'
342342
export VALGRIND='${valgrind}'
343+
export ATLAS_SERVERLESS_SRV='${atlas_serverless_srv}'
344+
export ATLAS_SERVERLESS='${atlas_serverless}
343345
sh .evergreen/run-auth-tests.sh
344346
''', silent=True),
345347
)),

0 commit comments

Comments
 (0)