@@ -66,8 +66,7 @@ functions:
66
66
# If this was a patch build, doing a fresh clone would not actually test the patch
67
67
cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS
68
68
else
69
- # git clone git://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS
70
- git clone git://github.com/bazile-clyde/drivers-evergreen-tools.git $DRIVERS_TOOLS
69
+ git clone git://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS
71
70
fi
72
71
73
72
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" >
@@ -323,6 +322,54 @@ functions:
323
322
324
323
cat setup.js
325
324
mongo --nodb setup.js aws_e2e_ecs.js
325
+ run-ocsp-test :
326
+ - command : shell.exec
327
+ type : test
328
+ params :
329
+ working_dir : src
330
+ script : |
331
+ ${PREPARE_SHELL}
332
+
333
+ UNIFIED=${UNIFIED} \
334
+ CA_FILE="$DRIVERS_TOOLS/.evergreen/ocsp/rsa/ca.pem" \
335
+ OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
336
+ sh ${PROJECT_DIRECTORY}/.evergreen/run-ocsp-tests.sh
337
+ run-valid-ocsp-server :
338
+ - command : shell.exec
339
+ params :
340
+ script : |
341
+ cd ${DRIVERS_TOOLS}/.evergreen/ocsp
342
+ /opt/mongodbtoolchain/v3/bin/python3 -m venv ./venv
343
+ ./venv/bin/pip3 install asn1crypto oscrypto bottle
344
+ - command : shell.exec
345
+ params :
346
+ background : true
347
+ script : |
348
+ cd ${DRIVERS_TOOLS}/.evergreen/ocsp
349
+ nohup ./venv/bin/python3 ocsp_mock.py \
350
+ --ca_file rsa/ca.pem \
351
+ --ocsp_responder_cert rsa/ca.crt \
352
+ --ocsp_responder_key rsa/ca.key \
353
+ -p 8100 -v
354
+ run-revoked-ocsp-server :
355
+ - command : shell.exec
356
+ params :
357
+ script : |
358
+ cd ${DRIVERS_TOOLS}/.evergreen/ocsp
359
+ /opt/mongodbtoolchain/v3/bin/python3 -m venv ./venv
360
+ ./venv/bin/pip3 install asn1crypto oscrypto bottle
361
+ - command : shell.exec
362
+ params :
363
+ background : true
364
+ script : |
365
+ cd ${DRIVERS_TOOLS}/.evergreen/ocsp
366
+ nohup ./venv/bin/python3 ocsp_mock.py \
367
+ --ca_file rsa/ca.pem \
368
+ --ocsp_responder_cert rsa/ca.crt \
369
+ --ocsp_responder_key rsa/ca.key \
370
+ -p 8100 \
371
+ -v \
372
+ --fault revoked
326
373
pre :
327
374
- func : fetch source
328
375
- func : prepare resources
@@ -915,6 +962,102 @@ tasks:
915
962
- func : run atlas tests
916
963
vars :
917
964
VERSION : latest
965
+ - name : test-ocsp-valid-cert-server-staples
966
+ tags :
967
+ - ocsp
968
+ commands :
969
+ - func : run-valid-ocsp-server
970
+ - func : install dependencies
971
+ - func : bootstrap mongo-orchestration
972
+ vars :
973
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-mustStaple.json
974
+ VERSION : latest
975
+ TOPOLOGY : server
976
+ - func : run-ocsp-test
977
+ vars :
978
+ OCSP_TLS_SHOULD_SUCCEED : 1
979
+ - name : test-ocsp-invalid-cert-server-staples
980
+ tags :
981
+ - ocsp
982
+ commands :
983
+ - func : run-revoked-ocsp-server
984
+ - func : install dependencies
985
+ - func : bootstrap mongo-orchestration
986
+ vars :
987
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-mustStaple.json
988
+ VERSION : latest
989
+ TOPOLOGY : server
990
+ - func : run-ocsp-test
991
+ vars :
992
+ OCSP_TLS_SHOULD_SUCCEED : 0
993
+ - name : test-ocsp-valid-cert-server-does-not-staple
994
+ tags :
995
+ - ocsp
996
+ commands :
997
+ - func : run-valid-ocsp-server
998
+ - func : install dependencies
999
+ - func : bootstrap mongo-orchestration
1000
+ vars :
1001
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-disableStapling.json
1002
+ VERSION : latest
1003
+ TOPOLOGY : server
1004
+ - func : run-ocsp-test
1005
+ vars :
1006
+ OCSP_TLS_SHOULD_SUCCEED : 1
1007
+ - name : test-ocsp-invalid-cert-server-does-not-staple
1008
+ tags :
1009
+ - ocsp
1010
+ commands :
1011
+ - func : run-revoked-ocsp-server
1012
+ - func : install dependencies
1013
+ - func : bootstrap mongo-orchestration
1014
+ vars :
1015
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-disableStapling.json
1016
+ VERSION : latest
1017
+ TOPOLOGY : server
1018
+ - func : run-ocsp-test
1019
+ vars :
1020
+ OCSP_TLS_SHOULD_SUCCEED : 0
1021
+ - name : test-ocsp-soft-fail
1022
+ tags :
1023
+ - ocsp
1024
+ commands :
1025
+ - func : install dependencies
1026
+ - func : bootstrap mongo-orchestration
1027
+ vars :
1028
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-disableStapling.json
1029
+ VERSION : latest
1030
+ TOPOLOGY : server
1031
+ - func : run-ocsp-test
1032
+ vars :
1033
+ OCSP_TLS_SHOULD_SUCCEED : 1
1034
+ - name : test-ocsp-malicious-invalid-cert-mustStaple-server-does-not-staple
1035
+ tags :
1036
+ - ocsp
1037
+ commands :
1038
+ - func : run-revoked-ocsp-server
1039
+ - func : install dependencies
1040
+ - func : bootstrap mongo-orchestration
1041
+ vars :
1042
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-mustStaple-disableStapling.json
1043
+ VERSION : latest
1044
+ TOPOLOGY : server
1045
+ - func : run-ocsp-test
1046
+ vars :
1047
+ OCSP_TLS_SHOULD_SUCCEED : 0
1048
+ - name : test-ocsp-malicious-no-responder-mustStaple-server-does-not-staple
1049
+ tags :
1050
+ - ocsp
1051
+ commands :
1052
+ - func : install dependencies
1053
+ - func : bootstrap mongo-orchestration
1054
+ vars :
1055
+ ORCHESTRATION_FILE : rsa-basic-tls-ocsp-mustStaple-disableStapling.json
1056
+ VERSION : latest
1057
+ TOPOLOGY : server
1058
+ - func : run-ocsp-test
1059
+ vars :
1060
+ OCSP_TLS_SHOULD_SUCCEED : 0
918
1061
- name : aws-auth-test
919
1062
commands :
920
1063
- func : install dependencies
@@ -1082,6 +1225,13 @@ buildvariants:
1082
1225
- test-2.6-replica_set-unified
1083
1226
- test-2.6-sharded_cluster-unified
1084
1227
- test-atlas-connectivity
1228
+ - test-ocsp-valid-cert-server-staples
1229
+ - test-ocsp-invalid-cert-server-staples
1230
+ - test-ocsp-valid-cert-server-does-not-staple
1231
+ - test-ocsp-invalid-cert-server-does-not-staple
1232
+ - test-ocsp-soft-fail
1233
+ - test-ocsp-malicious-invalid-cert-mustStaple-server-does-not-staple
1234
+ - test-ocsp-malicious-no-responder-mustStaple-server-does-not-staple
1085
1235
- name : macos-1014-carbon
1086
1236
display_name : macOS 10.14 Node Carbon
1087
1237
run_on : macos-1014
@@ -1167,6 +1317,13 @@ buildvariants:
1167
1317
- test-3.2-replica_set-unified
1168
1318
- test-3.2-sharded_cluster-unified
1169
1319
- test-atlas-connectivity
1320
+ - test-ocsp-valid-cert-server-staples
1321
+ - test-ocsp-invalid-cert-server-staples
1322
+ - test-ocsp-valid-cert-server-does-not-staple
1323
+ - test-ocsp-invalid-cert-server-does-not-staple
1324
+ - test-ocsp-soft-fail
1325
+ - test-ocsp-malicious-invalid-cert-mustStaple-server-does-not-staple
1326
+ - test-ocsp-malicious-no-responder-mustStaple-server-does-not-staple
1170
1327
- name : rhel71-power8-test-carbon
1171
1328
display_name : RHEL 7.1 (POWER8) Node Carbon
1172
1329
run_on : rhel71-power8-test
@@ -1357,6 +1514,13 @@ buildvariants:
1357
1514
- test-4.2-replica_set-unified
1358
1515
- test-4.2-sharded_cluster-unified
1359
1516
- test-atlas-connectivity
1517
+ - test-ocsp-valid-cert-server-staples
1518
+ - test-ocsp-invalid-cert-server-staples
1519
+ - test-ocsp-valid-cert-server-does-not-staple
1520
+ - test-ocsp-invalid-cert-server-does-not-staple
1521
+ - test-ocsp-soft-fail
1522
+ - test-ocsp-malicious-invalid-cert-mustStaple-server-does-not-staple
1523
+ - test-ocsp-malicious-no-responder-mustStaple-server-does-not-staple
1360
1524
- name : ubuntu1804-arm64-test-carbon
1361
1525
display_name : Ubuntu 18.04 (ARM64) Node Carbon
1362
1526
run_on : ubuntu1804-arm64-test
0 commit comments