Skip to content

Commit

Permalink
✅ [#4993] Tests for fetching options from Referentielijsten
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Jan 13, 2025
1 parent b5f2f67 commit 5b99dc0
Show file tree
Hide file tree
Showing 5 changed files with 545 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.2
method: GET
uri: http://localhost:8004/api/v1/items?tabel__code=non-existent
response:
body:
string: '{"count":0,"next":null,"previous":null,"results":[]}'
headers:
Allow:
- GET, HEAD, OPTIONS
Content-Length:
- '52'
Content-Security-Policy:
- 'frame-src ''self''; form-action ''self''; object-src ''none''; style-src
''self'' ''unsafe-inline'' fonts.googleapis.com; script-src ''self'' ''unsafe-inline'';
font-src ''self'' fonts.gstatic.com; worker-src ''self'' blob:; frame-ancestors
''none''; img-src ''self'' data: cdn.redoc.ly; default-src ''self''; base-uri
''self'''
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Referrer-Policy:
- same-origin
Vary:
- origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.2
method: GET
uri: http://localhost:8004/api/v1/items?tabel__code=tabel1
response:
body:
string: '{"count":2,"next":null,"previous":null,"results":[{"code":"option1","naam":"Option
1","begindatumGeldigheid":"2025-01-07T14:17:53Z","einddatumGeldigheid":null,"aanvullendeGegevens":null},{"code":"option2","naam":"Option
2","begindatumGeldigheid":"2025-01-07T14:17:59Z","einddatumGeldigheid":null,"aanvullendeGegevens":null}]}'
headers:
Allow:
- GET, HEAD, OPTIONS
Content-Length:
- '325'
Content-Security-Policy:
- 'frame-src ''self''; form-action ''self''; object-src ''none''; style-src
''self'' ''unsafe-inline'' fonts.googleapis.com; script-src ''self'' ''unsafe-inline'';
font-src ''self'' fonts.gstatic.com; worker-src ''self'' blob:; frame-ancestors
''none''; img-src ''self'' data: cdn.redoc.ly; default-src ''self''; base-uri
''self'''
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Referrer-Policy:
- same-origin
Vary:
- origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.2
method: GET
uri: http://localhost:8004/api/v1/items?tabel__code=non-existent
response:
body:
string: '{"count":0,"next":null,"previous":null,"results":[]}'
headers:
Allow:
- GET, HEAD, OPTIONS
Content-Length:
- '52'
Content-Security-Policy:
- 'frame-src ''self''; form-action ''self''; object-src ''none''; style-src
''self'' ''unsafe-inline'' fonts.googleapis.com; script-src ''self'' ''unsafe-inline'';
font-src ''self'' fonts.gstatic.com; worker-src ''self'' blob:; frame-ancestors
''none''; img-src ''self'' data: cdn.redoc.ly; default-src ''self''; base-uri
''self'''
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Referrer-Policy:
- same-origin
Vary:
- origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.2
method: GET
uri: http://localhost:8004/api/v1/items?tabel__code=tabel1
response:
body:
string: '{"count":2,"next":null,"previous":null,"results":[{"code":"option1","naam":"Option
1","begindatumGeldigheid":"2025-01-07T14:17:53Z","einddatumGeldigheid":null,"aanvullendeGegevens":null},{"code":"option2","naam":"Option
2","begindatumGeldigheid":"2025-01-07T14:17:59Z","einddatumGeldigheid":null,"aanvullendeGegevens":null}]}'
headers:
Allow:
- GET, HEAD, OPTIONS
Content-Length:
- '325'
Content-Security-Policy:
- 'frame-src ''self''; form-action ''self''; object-src ''none''; style-src
''self'' ''unsafe-inline'' fonts.googleapis.com; script-src ''self'' ''unsafe-inline'';
font-src ''self'' fonts.gstatic.com; worker-src ''self'' blob:; frame-ancestors
''none''; img-src ''self'' data: cdn.redoc.ly; default-src ''self''; base-uri
''self'''
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Referrer-Policy:
- same-origin
Vary:
- origin
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
version: 1
Loading

0 comments on commit 5b99dc0

Please sign in to comment.