Skip to content

Commit 03f8d56

Browse files
committed
PYTHON-1436 - Test against Atlas with TLSv1.0 disabled
1 parent e945190 commit 03f8d56

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ functions:
435435
working_dir: "src"
436436
script: |
437437
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
438-
PYTHON_BINARY=${PYTHON_BINARY} ATLAS_REPL='${atlas_repl}' ATLAS_SHRD='${atlas_shrd}' ATLAS_FREE='${atlas_free}' sh ${PROJECT_DIRECTORY}/.evergreen/run-atlas-tests.sh
438+
PYTHON_BINARY=${PYTHON_BINARY} ATLAS_REPL='${atlas_repl}' ATLAS_SHRD='${atlas_shrd}' ATLAS_FREE='${atlas_free}' ATLAS_TLSP='${atlas_tls11plus}' sh ${PROJECT_DIRECTORY}/.evergreen/run-atlas-tests.sh
439439
440440
"cleanup":
441441
- command: shell.exec

test/atlas/test_connection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
_REPL = os.environ.get("ATLAS_REPL")
3434
_SHRD = os.environ.get("ATLAS_SHRD")
3535
_FREE = os.environ.get("ATLAS_FREE")
36+
_TLSP = os.environ.get("ATLAS_TLSP")
3637

3738

3839
def _connect(uri):
@@ -62,6 +63,9 @@ def test_free_tier(self):
6263
raise unittest.SkipTest("Free tier requires SNI support.")
6364
_connect(_FREE)
6465

66+
def test_tls_11_plus(self):
67+
_connect(_TLSP)
68+
6569

6670
if __name__ == '__main__':
6771
unittest.main()

0 commit comments

Comments
 (0)