Red: ProvideDocuments takes the new IDocumentScanner port but ignores it, so infected, non-PDF and scanner-unavailable uploads are still Accepted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
37 lines
1.8 KiB
Gherkin
37 lines
1.8 KiB
Gherkin
# language: en
|
|
# Drives S-29 (#192, ADR-0036). A zorgprofessional uploads the diploma their registration waits for
|
|
# ("documenten aanleveren"). Only a clean PDF is stored against the zaak and unblocks beoordeling; an
|
|
# infected file, a non-PDF, or an unreachable scanner is refused and the registration keeps waiting.
|
|
# Exercised against in-memory ports; the live clamd scan is verified by verify-clamav.
|
|
Feature: Een diploma aanleveren
|
|
Als BIG-register wil ik alleen veilige PDF-diploma's opslaan
|
|
zodat een behandelaar nooit een besmet bestand opent.
|
|
|
|
Scenario: Een schoon PDF-diploma wordt opgeslagen
|
|
Given a registration waiting for documents
|
|
When the zorgprofessional uploads a clean PDF diploma
|
|
Then the upload is accepted
|
|
And the diploma is stored against the zaak
|
|
And the registration no longer waits for documents
|
|
|
|
Scenario: Een besmet diploma wordt geweigerd
|
|
Given a registration waiting for documents
|
|
When the zorgprofessional uploads a PDF that the scanner reports infected
|
|
Then the upload is refused as "Infected"
|
|
And no document is stored against the zaak
|
|
And the registration still waits for documents
|
|
|
|
Scenario: Een bestand dat geen PDF is wordt geweigerd
|
|
Given a registration waiting for documents
|
|
When the zorgprofessional uploads a file that is not a PDF
|
|
Then the upload is refused as "NotAPdf"
|
|
And no document is stored against the zaak
|
|
And the registration still waits for documents
|
|
|
|
Scenario: De virusscanner is niet bereikbaar
|
|
Given a registration waiting for documents
|
|
When the zorgprofessional uploads a PDF while the scanner is unavailable
|
|
Then the upload is refused as "ScannerUnavailable"
|
|
And no document is stored against the zaak
|
|
And the registration still waits for documents
|