@@ -339,19 +339,6 @@ functions:
339
339
${PREPARE_SHELL}
340
340
PYTHON_BINARY=${PYTHON_BINARY} sh ${PROJECT_DIRECTORY}/.evergreen/run-cdecimal-tests.sh
341
341
342
- "run pyopenssl tests":
343
- - command: shell.exec
344
- type: test
345
- params:
346
- working_dir: "src"
347
- script: |
348
- set -o xtrace
349
- ${PREPARE_SHELL}
350
- if [ -n "${MONGODB_STARTED}" ]; then
351
- export PYMONGO_MUST_CONNECT=1
352
- fi
353
- PYTHON_BINARY=${PYTHON_BINARY} sh ${PROJECT_DIRECTORY}/.evergreen/run-pyopenssl-tests.sh
354
-
355
342
"run doctests":
356
343
- command: shell.exec
357
344
type: test
@@ -399,6 +386,9 @@ functions:
399
386
export LIBMONGOCRYPT_URL="${libmongocrypt_url}"
400
387
export TEST_ENCRYPTION=1
401
388
fi
389
+ if [ -n "${test_pyopenssl}" ]; then
390
+ export TEST_PYOPENSSL=1
391
+ fi
402
392
if [ -n "${SETDEFAULTENCODING}" ]; then
403
393
export SETDEFAULTENCODING="${SETDEFAULTENCODING}"
404
394
fi
@@ -1076,17 +1066,6 @@ tasks:
1076
1066
TOPOLOGY: "server"
1077
1067
- func: "run cdecimal tests"
1078
1068
1079
- # Use latest for this, since we're
1080
- # adding this to support OCSP stapling
1081
- - name: "pyopenssl"
1082
- tags: ["pyopenssl"]
1083
- commands:
1084
- - func: "bootstrap mongo-orchestration"
1085
- vars:
1086
- VERSION: "latest"
1087
- TOPOLOGY: "server"
1088
- - func: "run pyopenssl tests"
1089
-
1090
1069
- name: "no-server"
1091
1070
tags: ["no-server"]
1092
1071
commands:
@@ -1632,6 +1611,17 @@ axes:
1632
1611
tags: ["encryption_tag"]
1633
1612
variables:
1634
1613
test_encryption: true
1614
+ batchtime: 10080 # 7 days
1615
+
1616
+ # Run pyopenssl tests?
1617
+ - id: pyopenssl
1618
+ display_name: "PyOpenSSL"
1619
+ values:
1620
+ - id: "enabled"
1621
+ display_name: "PyOpenSSL"
1622
+ variables:
1623
+ test_pyopenssl: true
1624
+ batchtime: 10080 # 7 days
1635
1625
1636
1626
# Run setdefaultencoding before running the test suite?
1637
1627
- id: setdefaultencoding
@@ -1834,39 +1824,52 @@ buildvariants:
1834
1824
python-version: ["2.7", "3.4", "3.5", "3.6", "3.7", "pypy", "pypy3.5"]
1835
1825
auth: "*"
1836
1826
ssl: "ssl"
1827
+ pyopenssl: "*"
1828
+ # Only test "noauth" with Python 3.7.
1829
+ exclude_spec:
1830
+ platform: ubuntu-16.04
1831
+ python-version: ["2.7", "3.4", "3.5", "3.6", "pypy", "pypy3.5"]
1832
+ auth: "noauth"
1833
+ ssl: "ssl"
1834
+ pyopenssl: "*"
1837
1835
display_name: "PyOpenSSL ${platform} ${python-version} ${auth}"
1838
1836
tasks:
1839
- - "pyopenssl"
1837
+ - '.replica_set !.2.6 !.3.0'
1838
+ # Test standalone and sharded only on 4.4.
1839
+ - '.4.4'
1840
1840
1841
1841
- matrix_name: "test-pyopenssl-old-py27"
1842
1842
matrix_spec:
1843
1843
platform:
1844
1844
# Supported OSes with pre-2.7.9 CPython versions.
1845
1845
- rhel70 # CPython 2.7.5
1846
- auth: "* "
1846
+ auth: "auth "
1847
1847
ssl: "ssl"
1848
+ pyopenssl: "*"
1848
1849
display_name: "PyOpenSSL ${platform} Pre-2.7.9 Python ${auth}"
1849
1850
tasks:
1850
- - "pyopenssl"
1851
+ - '.replica_set'
1851
1852
1852
1853
- matrix_name: "tests-pyopenssl-macOS"
1853
1854
matrix_spec:
1854
1855
platform: macos-1014
1855
- auth: "* "
1856
+ auth: "auth "
1856
1857
ssl: "ssl"
1858
+ pyopenssl: "*"
1857
1859
display_name: "PyOpenSSL ${platform} ${auth}"
1858
1860
tasks:
1859
- - "pyopenssl"
1861
+ - '.replica_set !.2.6 !.3.0'
1860
1862
1861
1863
- matrix_name: "tests-pyopenssl-windows"
1862
1864
matrix_spec:
1863
1865
platform: windows-64-vsMulti-small
1864
1866
python-version-windows: "*"
1865
- auth: "* "
1867
+ auth: "auth "
1866
1868
ssl: "ssl"
1869
+ pyopenssl: "*"
1867
1870
display_name: "PyOpenSSL ${platform} ${python-version-windows} ${auth}"
1868
1871
tasks:
1869
- - "pyopenssl"
1872
+ - '.replica_set'
1870
1873
1871
1874
- matrix_name: "tests-python-version-rhel62-test-encryption"
1872
1875
matrix_spec:
0 commit comments