Skip to content

Commit 4395ef7

Browse files
author
Divjot Arora
committed
add checks for LB URIs in config
1 parent 8bed91f commit 4395ef7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.evergreen/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,17 @@ functions:
533533
fi
534534
fi
535535
536+
# Verify that the required LB URI env vars are set to ensure that the test runner can correctly connect to
537+
# the LBs.
538+
if [ ! -z ${SINGLE_MONGOS_LB_URI} ]; then
539+
echo "SINGLE_MONGOS_LB_URI" must be set for testing against LBs"
540+
exit 1
541+
fi
542+
if [ ! -z ${MULTI_MONGOS_LB_URI} ]; then
543+
echo "MULTI_MONGOS_LB_URI must be set for testing against LBs"
544+
exit 1
545+
fi
546+
536547
# Per the LB testing spec, the URI of an LB fronting a single mongos should be used to configure internal
537548
# testing Client instances, so we set MONGODB_URI to SINGLE_MONGOS_LB_URI.
538549

0 commit comments

Comments
 (0)