Skip to content

Commit

Permalink
[#3688] Adapt tests
Browse files Browse the repository at this point in the history
For the multiple file component, create a single file attachment
to make sure the component multiplicity is taken into account

Adapt submission date after update to the 'now' static variable
  • Loading branch information
Viicos authored and sergei-maertens committed Mar 22, 2024
1 parent 23b0602 commit a84ef19
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ interactions:
- request:
body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7",
"bronorganisatie": "000000000", "creatiedatum": "2024-03-19", "titel": "Form
000", "auteur": "Aanvrager", "taal": "nld", "formaat": "video/x-ms-wmv", "inhoud":
000", "auteur": "Aanvrager", "taal": "nld", "formaat": "model/iges", "inhoud":
"Y29udGVudA==", "status": "definitief", "bestandsnaam": "attachment1.jpg", "beschrijving":
"Bijgevoegd document", "indicatieGebruiksrecht": false, "bestandsomvang": 7}'
headers:
Expand All @@ -15,7 +15,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '452'
- '448'
Content-Type:
- application/json
User-Agent:
Expand All @@ -24,20 +24,20 @@ interactions:
uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten
response:
body:
string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/d82ae704-4f1d-46bb-9e34-0b82c3ff939e","identificatie":"DOCUMENT-2024-0000000016","bronorganisatie":"000000000","creatiedatum":"2024-03-19","titel":"Form
000","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"video/x-ms-wmv","taal":"nld","versie":1,"beginRegistratie":"2024-03-21T14:22:01.494116Z","bestandsnaam":"attachment1.jpg","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/d82ae704-4f1d-46bb-9e34-0b82c3ff939e/download?versie=1","bestandsomvang":7,"link":"","beschrijving":"Bijgevoegd
string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/34b8ef68-44f3-433c-895c-14b4dd975356","identificatie":"DOCUMENT-2024-0000000023","bronorganisatie":"000000000","creatiedatum":"2024-03-19","titel":"Form
000","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"model/iges","taal":"nld","versie":1,"beginRegistratie":"2024-03-22T10:51:51.374015Z","bestandsnaam":"attachment1.jpg","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/34b8ef68-44f3-433c-895c-14b4dd975356/download?versie=1","bestandsomvang":7,"link":"","beschrijving":"Bijgevoegd
document","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}'
headers:
API-version:
- 1.4.2
Allow:
- GET, POST, HEAD, OPTIONS
Content-Length:
- '1032'
- '1028'
Content-Type:
- application/json
Location:
- http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/d82ae704-4f1d-46bb-9e34-0b82c3ff939e
- http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/34b8ef68-44f3-433c-895c-14b4dd975356
Referrer-Policy:
- same-origin
Vary:
Expand All @@ -54,7 +54,7 @@ interactions:
- request:
body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7",
"bronorganisatie": "000000000", "creatiedatum": "2024-03-19", "titel": "Form
000", "auteur": "Aanvrager", "taal": "nld", "formaat": "text/vcard", "inhoud":
000", "auteur": "Aanvrager", "taal": "nld", "formaat": "image/pjpeg", "inhoud":
"Y29udGVudA==", "status": "definitief", "bestandsnaam": "attachment2_1.jpg",
"beschrijving": "Bijgevoegd document", "indicatieGebruiksrecht": false, "bestandsomvang":
7}'
Expand All @@ -68,7 +68,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '450'
- '451'
Content-Type:
- application/json
User-Agent:
Expand All @@ -77,73 +77,20 @@ interactions:
uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten
response:
body:
string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7049fdf3-ba00-409a-ae0b-2a57f5f880a9","identificatie":"DOCUMENT-2024-0000000017","bronorganisatie":"000000000","creatiedatum":"2024-03-19","titel":"Form
000","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"text/vcard","taal":"nld","versie":1,"beginRegistratie":"2024-03-21T14:22:01.532395Z","bestandsnaam":"attachment2_1.jpg","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7049fdf3-ba00-409a-ae0b-2a57f5f880a9/download?versie=1","bestandsomvang":7,"link":"","beschrijving":"Bijgevoegd
string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/2bca92b5-a0c2-4ec3-9361-85f7c13451cb","identificatie":"DOCUMENT-2024-0000000024","bronorganisatie":"000000000","creatiedatum":"2024-03-19","titel":"Form
000","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"image/pjpeg","taal":"nld","versie":1,"beginRegistratie":"2024-03-22T10:51:51.413269Z","bestandsnaam":"attachment2_1.jpg","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/2bca92b5-a0c2-4ec3-9361-85f7c13451cb/download?versie=1","bestandsomvang":7,"link":"","beschrijving":"Bijgevoegd
document","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}'
headers:
API-version:
- 1.4.2
Allow:
- GET, POST, HEAD, OPTIONS
Content-Length:
- '1030'
- '1031'
Content-Type:
- application/json
Location:
- http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7049fdf3-ba00-409a-ae0b-2a57f5f880a9
Referrer-Policy:
- same-origin
Vary:
- Origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
X-XSS-Protection:
- 1; mode=block
status:
code: 201
message: Created
- request:
body: '{"informatieobjecttype": "http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7",
"bronorganisatie": "000000000", "creatiedatum": "2024-03-19", "titel": "Form
000", "auteur": "Aanvrager", "taal": "nld", "formaat": "text/vcard", "inhoud":
"Y29udGVudA==", "status": "definitief", "bestandsnaam": "attachment2_2.jpg",
"beschrijving": "Bijgevoegd document", "indicatieGebruiksrecht": false, "bestandsomvang":
7}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0X2NsaWVudF9pZCIsImlhdCI6MTcxMDg1NTYzNCwiY2xpZW50X2lkIjoidGVzdF9jbGllbnRfaWQiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.NJjZEPSwh9eGzntjwUB7rFAiaq_5DqYgVylWuKdtdMA
Connection:
- keep-alive
Content-Length:
- '450'
Content-Type:
- application/json
User-Agent:
- python-requests/2.31.0
method: POST
uri: http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten
response:
body:
string: '{"url":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b94247e8-0ec3-4a55-bed8-af05511099d2","identificatie":"DOCUMENT-2024-0000000018","bronorganisatie":"000000000","creatiedatum":"2024-03-19","titel":"Form
000","vertrouwelijkheidaanduiding":"openbaar","auteur":"Aanvrager","status":"definitief","formaat":"text/vcard","taal":"nld","versie":1,"beginRegistratie":"2024-03-21T14:22:01.604970Z","bestandsnaam":"attachment2_2.jpg","inhoud":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b94247e8-0ec3-4a55-bed8-af05511099d2/download?versie=1","bestandsomvang":7,"link":"","beschrijving":"Bijgevoegd
document","ontvangstdatum":null,"verzenddatum":null,"indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":{"soort":"","datum":null},"integriteit":{"algoritme":"","waarde":"","datum":null},"informatieobjecttype":"http://localhost:8003/catalogi/api/v1/informatieobjecttypen/531f6c1a-97f7-478c-85f0-67d2f23661c7","locked":false,"bestandsdelen":[],"trefwoorden":[],"lock":""}'
headers:
API-version:
- 1.4.2
Allow:
- GET, POST, HEAD, OPTIONS
Content-Length:
- '1030'
Content-Type:
- application/json
Location:
- http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b94247e8-0ec3-4a55-bed8-af05511099d2
- http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/2bca92b5-a0c2-4ec3-9361-85f7c13451cb
Referrer-Policy:
- same-origin
Vary:
Expand All @@ -159,9 +106,8 @@ interactions:
message: Created
- request:
body: '{"type": "http://objecttypes-web:8000/api/v2/objecttypes/527b8408-7421-4808-a744-43ccb7bdaaa2",
"record": {"typeVersion": 1, "data": {"single_file": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/d82ae704-4f1d-46bb-9e34-0b82c3ff939e",
"multiple_files": ["http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7049fdf3-ba00-409a-ae0b-2a57f5f880a9",
"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b94247e8-0ec3-4a55-bed8-af05511099d2"]},
"record": {"typeVersion": 1, "data": {"single_file": "http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/34b8ef68-44f3-433c-895c-14b4dd975356",
"multiple_files": ["http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/2bca92b5-a0c2-4ec3-9361-85f7c13451cb"]},
"startAt": "2024-03-19"}}'
headers:
Accept:
Expand All @@ -175,7 +121,7 @@ interactions:
Content-Crs:
- EPSG:4326
Content-Length:
- '525'
- '415'
Content-Type:
- application/json
User-Agent:
Expand All @@ -184,20 +130,20 @@ interactions:
uri: http://localhost:8002/api/v2/objects
response:
body:
string: '{"url":"http://localhost:8002/api/v2/objects/c2c85d8d-809c-4ec8-9aa5-1b45aa13bda3","uuid":"c2c85d8d-809c-4ec8-9aa5-1b45aa13bda3","type":"http://objecttypes-web:8000/api/v2/objecttypes/527b8408-7421-4808-a744-43ccb7bdaaa2","record":{"index":1,"typeVersion":1,"data":{"single_file":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/d82ae704-4f1d-46bb-9e34-0b82c3ff939e","multiple_files":["http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/7049fdf3-ba00-409a-ae0b-2a57f5f880a9","http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/b94247e8-0ec3-4a55-bed8-af05511099d2"]},"geometry":null,"startAt":"2024-03-19","endAt":null,"registrationAt":"2024-03-21","correctionFor":null,"correctedBy":null}}'
string: '{"url":"http://localhost:8002/api/v2/objects/7d9d7389-9fea-43bf-a630-84a60eaab373","uuid":"7d9d7389-9fea-43bf-a630-84a60eaab373","type":"http://objecttypes-web:8000/api/v2/objecttypes/527b8408-7421-4808-a744-43ccb7bdaaa2","record":{"index":1,"typeVersion":1,"data":{"single_file":"http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/34b8ef68-44f3-433c-895c-14b4dd975356","multiple_files":["http://localhost:8003/documenten/api/v1/enkelvoudiginformatieobjecten/2bca92b5-a0c2-4ec3-9361-85f7c13451cb"]},"geometry":null,"startAt":"2024-03-19","endAt":null,"registrationAt":"2024-03-22","correctionFor":null,"correctedBy":null}}'
headers:
Allow:
- GET, POST, HEAD, OPTIONS
Content-Crs:
- EPSG:4326
Content-Length:
- '750'
- '641'
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Location:
- http://localhost:8002/api/v2/objects/c2c85d8d-809c-4ec8-9aa5-1b45aa13bda3
- http://localhost:8002/api/v2/objects/7d9d7389-9fea-43bf-a630-84a60eaab373
Referrer-Policy:
- same-origin
X-Content-Type-Options:
Expand Down
Loading

0 comments on commit a84ef19

Please sign in to comment.