Skip to content

Commit 9abc18f

Browse files
committed
Test dumping of audit logs
1 parent 782e959 commit 9abc18f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,17 @@ jobs:
110110
- name: Run Dandi API tests only
111111
if: matrix.mode == 'dandi-api'
112112
run: |
113+
export DANDI_TESTS_AUDIT_CSV=/tmp/audit.csv
113114
python -m pytest -s -v --cov=dandi --cov-report=xml --dandi-api dandi
115+
if [ ! -e /tmp/audit.csv ]
116+
then echo Audit file not created
117+
exit 1
118+
fi
119+
lines="$(wc -l /tmp/audit.csv | awk '{print $1}')"
120+
if [ "$lines" -lt 100 ]
121+
then echo Audit file shorter than expected - only "$lines" lines
122+
exit 1
123+
fi
114124
115125
- name: Dump Docker Compose logs
116126
if: failure() && startsWith(matrix.os, 'ubuntu')

0 commit comments

Comments
 (0)