Skip to content

Commit e4927c1

Browse files
committed
📼 [#726] Update backend tests
1 parent b6a6503 commit e4927c1

3 files changed

+77
-17
lines changed

backend/src/openarchiefbeheer/zaken/tests/vcr/cassettes/InformatieobjecttypenChoicesViewTests.test_retrieve_choices_with_filters.yaml

+65-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,64 @@ interactions:
77
Accept-Encoding:
88
- gzip, deflate, br
99
Authorization:
10-
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTczOTc5Nzc1NCwiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.yLGVdWLUP1fTlN1e_AGBtF8A_OS1Aon2Ky_t-rLb9eY
10+
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTc0MTY5MjMxMywiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.STB3xuL_Kixe2V2Fo-3RlB1dMU_A_a7KZd4qKAEPO3w
11+
Connection:
12+
- keep-alive
13+
User-Agent:
14+
- python-requests/2.32.3
15+
method: GET
16+
uri: http://localhost:8003/catalogi/api/v1/zaaktypen?identificatie=ZAAKTYPE-2018-0000000001
17+
response:
18+
body:
19+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/zaaktypen/be210495-20b6-48ff-8d3d-3e44f74c43a4","identificatie":"ZAAKTYPE-2018-0000000001","omschrijving":"brand
20+
world-class initiatives","omschrijvingGeneriek":"","vertrouwelijkheidaanduiding":"","doel":"Trouble
21+
red compare produce animal. Everything today Democrat student enter. By probably
22+
adult.","aanleiding":"Couple toward trip old nice memory system instead.","toelichting":"","indicatieInternOfExtern":"extern","handelingInitiator":"indienen","onderwerp":"Evenementvergunning","handelingBehandelaar":"uitvoeren","doorlooptijd":"P30D","servicenorm":null,"opschortingEnAanhoudingMogelijk":true,"verlengingMogelijk":false,"verlengingstermijn":null,"trefwoorden":[],"publicatieIndicatie":true,"publicatietekst":"","verantwoordingsrelatie":[],"productenOfDiensten":["https://example.com/product/123"],"selectielijstProcestype":"https://selectielijst.openzaak.nl/api/v1/procestypen/aa8aa2fd-b9c6-4e34-9a6c-58a677f60ea0","referentieproces":{"naam":"ReferentieProces
23+
0","link":""},"concept":false,"verantwoordelijke":"100000000","beginGeldigheid":"2018-01-01","eindeGeldigheid":null,"versiedatum":"2018-01-01","beginObject":"2018-01-01","eindeObject":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/ec77ad39-0954-4aeb-bcf2-6f45263cde77","statustypen":["http://localhost:8003/catalogi/api/v1/statustypen/9438e56a-5d78-4dc8-9d9a-2404781f818d"],"resultaattypen":["http://localhost:8003/catalogi/api/v1/resultaattypen/12903100-b7a0-4441-9645-eda7df2ad106"],"eigenschappen":[],"informatieobjecttypen":["http://localhost:8003/catalogi/api/v1/informatieobjecttypen/a8089bdf-72d3-414f-a9cd-953cfa602b6c"],"roltypen":[],"besluittypen":["http://localhost:8003/catalogi/api/v1/besluittypen/588d7ec5-89e6-4aa0-a654-7475f0d5ac8e"],"deelzaaktypen":[],"gerelateerdeZaaktypen":[],"zaakobjecttypen":[]}]}'
24+
headers:
25+
API-version:
26+
- 1.3.1
27+
Allow:
28+
- GET, POST, HEAD, OPTIONS
29+
Connection:
30+
- keep-alive
31+
Content-Length:
32+
- '1905'
33+
Content-Security-Policy:
34+
- 'frame-src ''self''; img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com
35+
*.tile.openstreetmap.org; font-src ''self'' fonts.gstatic.com; default-src
36+
''self''; worker-src ''self'' blob:; object-src ''none''; script-src ''self''
37+
''unsafe-inline'' cdnjs.cloudflare.com; style-src ''self'' ''unsafe-inline''
38+
fonts.googleapis.com cdnjs.cloudflare.com; form-action ''self''; frame-ancestors
39+
''none''; base-uri ''self''; connect-src ''self'' raw.githubusercontent.com'
40+
Content-Type:
41+
- application/json
42+
Cross-Origin-Opener-Policy:
43+
- same-origin
44+
Date:
45+
- Tue, 11 Mar 2025 11:25:13 GMT
46+
Referrer-Policy:
47+
- same-origin
48+
Server:
49+
- nginx/1.27.0
50+
Vary:
51+
- Accept, origin
52+
X-Content-Type-Options:
53+
- nosniff
54+
X-Frame-Options:
55+
- DENY
56+
status:
57+
code: 200
58+
message: OK
59+
- request:
60+
body: null
61+
headers:
62+
Accept:
63+
- '*/*'
64+
Accept-Encoding:
65+
- gzip, deflate, br
66+
Authorization:
67+
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTc0MTY5MjMxMywiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.STB3xuL_Kixe2V2Fo-3RlB1dMU_A_a7KZd4qKAEPO3w
1168
Connection:
1269
- keep-alive
1370
User-Agent:
@@ -30,18 +87,18 @@ interactions:
3087
Content-Length:
3188
- '1137'
3289
Content-Security-Policy:
33-
- 'img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com *.tile.openstreetmap.org;
34-
object-src ''none''; script-src ''self'' ''unsafe-inline'' cdnjs.cloudflare.com;
35-
worker-src ''self'' blob:; form-action ''self''; style-src ''self'' ''unsafe-inline''
36-
fonts.googleapis.com cdnjs.cloudflare.com; default-src ''self''; frame-src
37-
''self''; font-src ''self'' fonts.gstatic.com; frame-ancestors ''none''; connect-src
38-
''self'' raw.githubusercontent.com; base-uri ''self'''
90+
- 'frame-src ''self''; img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com
91+
*.tile.openstreetmap.org; font-src ''self'' fonts.gstatic.com; default-src
92+
''self''; worker-src ''self'' blob:; object-src ''none''; script-src ''self''
93+
''unsafe-inline'' cdnjs.cloudflare.com; style-src ''self'' ''unsafe-inline''
94+
fonts.googleapis.com cdnjs.cloudflare.com; form-action ''self''; frame-ancestors
95+
''none''; base-uri ''self''; connect-src ''self'' raw.githubusercontent.com'
3996
Content-Type:
4097
- application/json
4198
Cross-Origin-Opener-Policy:
4299
- same-origin
43100
Date:
44-
- Mon, 17 Feb 2025 13:09:14 GMT
101+
- Tue, 11 Mar 2025 11:25:13 GMT
45102
Referrer-Policy:
46103
- same-origin
47104
Server:

backend/src/openarchiefbeheer/zaken/tests/vcr/cassettes/ResultaattypenChoicesViewTests.test_retrieve_choices_with_filters.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ interactions:
77
Accept-Encoding:
88
- gzip, deflate, br
99
Authorization:
10-
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTczNjg1MTA1NCwiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.lxTut69IIIa6tkLAkRO51N7KMonJQGK07R_BNpLTz8o
10+
- Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0LXZjciIsImlhdCI6MTc0MTY5MjQwNSwiY2xpZW50X2lkIjoidGVzdC12Y3IiLCJ1c2VyX2lkIjoiIiwidXNlcl9yZXByZXNlbnRhdGlvbiI6IiJ9.NHP1eJnPCGTK0pYNWCzip8OPXjuV8lV3oD_RDJFXyCc
1111
Connection:
1212
- keep-alive
1313
User-Agent:
1414
- python-requests/2.32.3
1515
method: GET
16-
uri: http://localhost:8003/catalogi/api/v1/resultaattypen?zaaktype=http%3A%2F%2Flocalhost%3A8003%2Fcatalogi%2Fapi%2Fv1%2Fzaaktypen%2Fbe210495-20b6-48ff-8d3d-3e44f74c43a4
16+
uri: http://localhost:8003/catalogi/api/v1/resultaattypen?zaaktypeIdentificatie=ZAAKTYPE-2018-0000000001
1717
response:
1818
body:
1919
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8003/catalogi/api/v1/resultaattypen/12903100-b7a0-4441-9645-eda7df2ad106","zaaktype":"http://localhost:8003/catalogi/api/v1/zaaktypen/be210495-20b6-48ff-8d3d-3e44f74c43a4","zaaktypeIdentificatie":"ZAAKTYPE-2018-0000000001","omschrijving":"Successful","resultaattypeomschrijving":"Successful","omschrijvingGeneriek":"","selectielijstklasse":"https://selectielijst.openzaak.nl/api/v1/resultaten/cc5ae4e3-a9e6-4386-bcee-46be4986a829","toelichting":"","archiefnominatie":"","archiefactietermijn":null,"brondatumArchiefprocedure":{"afleidingswijze":"","datumkenmerk":"","einddatumBekend":false,"objecttype":"","registratie":"","procestermijn":null},"procesobjectaard":"","indicatieSpecifiek":null,"procestermijn":null,"catalogus":"http://localhost:8003/catalogi/api/v1/catalogussen/ec77ad39-0954-4aeb-bcf2-6f45263cde77","besluittypen":[],"besluittypeOmschrijving":[],"informatieobjecttypen":[],"informatieobjecttypeOmschrijving":[],"beginGeldigheid":null,"eindeGeldigheid":null,"beginObject":null,"eindeObject":null}]}'
@@ -26,12 +26,19 @@ interactions:
2626
- keep-alive
2727
Content-Length:
2828
- '1088'
29+
Content-Security-Policy:
30+
- 'frame-src ''self''; img-src ''self'' data: cdn.redoc.ly cdnjs.cloudflare.com
31+
*.tile.openstreetmap.org; font-src ''self'' fonts.gstatic.com; default-src
32+
''self''; worker-src ''self'' blob:; object-src ''none''; script-src ''self''
33+
''unsafe-inline'' cdnjs.cloudflare.com; style-src ''self'' ''unsafe-inline''
34+
fonts.googleapis.com cdnjs.cloudflare.com; form-action ''self''; frame-ancestors
35+
''none''; base-uri ''self''; connect-src ''self'' raw.githubusercontent.com'
2936
Content-Type:
3037
- application/json
3138
Cross-Origin-Opener-Policy:
3239
- same-origin
3340
Date:
34-
- Tue, 14 Jan 2025 10:37:34 GMT
41+
- Tue, 11 Mar 2025 11:26:45 GMT
3542
Referrer-Policy:
3643
- same-origin
3744
Server:

backend/src/openarchiefbeheer/zaken/tests/vcr/test_views.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ def test_retrieve_choices_with_filters(self):
123123
user = UserFactory.create()
124124

125125
endpoint = furl(reverse("api:retrieve-external-resultaattype-choices"))
126-
endpoint.args["zaaktype"] = (
127-
"http://localhost:8003/catalogi/api/v1/zaaktypen/be210495-20b6-48ff-8d3d-3e44f74c43a4"
128-
)
126+
endpoint.args["zaaktypeIdentificatie"] = "ZAAKTYPE-2018-0000000001"
129127

130128
self.client.force_authenticate(user=user)
131129
response = self.client.get(endpoint.url)
@@ -186,9 +184,7 @@ def test_retrieve_choices_with_filters(self):
186184
user = UserFactory.create()
187185

188186
endpoint = furl(reverse("api:retrieve-informatieobjecttype-choices"))
189-
endpoint.args["zaaktype"] = (
190-
"http://localhost:8003/catalogi/api/v1/zaaktypen/be210495-20b6-48ff-8d3d-3e44f74c43a4"
191-
)
187+
endpoint.args["zaaktypeIdentificatie"] = "ZAAKTYPE-2018-0000000001"
192188

193189
self.client.force_authenticate(user=user)
194190
response = self.client.get(endpoint.url)

0 commit comments

Comments
 (0)