Skip to content

DRIVERS-2707 Relax the CMAP documentation requirement for durations in events #2764

DRIVERS-2707 Relax the CMAP documentation requirement for durations in events

DRIVERS-2707 Relax the CMAP documentation requirement for durations in events #2764

name: Check if all JSON test files are up-to-date
on:
push:
branches: [master]
pull_request: ~
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Set up npm
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: |
npm install -g js-yaml
pip3 install pymongo pyyaml jinja2
- name: Regenerate JSON test files
run: |
python3 ./source/server-discovery-and-monitoring/tests/errors/generate-error-tests.py
python3 ./source/client-side-encryption/etc/generate-corpus.py ./source/client-side-encryption/corpus
python3 ./source/client-side-encryption/etc/generate-test.py ./source/client-side-encryption/etc/test-templates/*.template ./source/client-side-encryption/tests/legacy
python3 ./source/client-side-operations-timeout/etc/generate-basic-tests.py ./source/client-side-operations-timeout/etc/templates ./source/client-side-operations-timeout/tests
python3 ./source/etc/generate-handshakeError-tests.py
cd source && make && git diff --exit-code