Skip to content

Commit 0b18997

Browse files
author
Sonny Bakker
committed
[#197] update tests & add new cassettes
1 parent e68774f commit 0b18997

12 files changed

+545
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/dbfdb3f2-e153-49ea-9e26-e55220605c14","bronorganisatie":"215906846","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"","voorvoegselAchternaam":"","achternaam":"","telefoonnummer":"","emailadres":"example@maykinmedia.nl","adres":null,"subject":"","subjectType":"natuurlijk_persoon","aanmaakkanaal":"","geverifieerd":false,"subjectIdentificatie":{"inpBsn":"","anpIdentificatie":"0","inpANummer":"","geslachtsnaam":"Greene","voorvoegselGeslachtsnaam":"","voorletters":"","voornamen":"Lori","geslachtsaanduiding":"","geboortedatum":"1981-04-15","verblijfsadres":null,"subVerblijfBuitenland":null}}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '726'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/c59c00b3-3445-4731-8a6b-ee26992a5358","bronorganisatie":"892036175","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"","voorvoegselAchternaam":"","achternaam":"","telefoonnummer":"","emailadres":"","adres":null,"subject":"","subjectType":null,"aanmaakkanaal":"","geverifieerd":false}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '416'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/c29538c1-98b8-4773-8ac1-f0af110d92f9","bronorganisatie":"620357848","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"Harry","voorvoegselAchternaam":"","achternaam":"Potter","telefoonnummer":"","emailadres":"","adres":null,"subject":"","subjectType":"natuurlijk_persoon","aanmaakkanaal":"","geverifieerd":false,"subjectIdentificatie":{"inpBsn":"024325818","anpIdentificatie":"0","inpANummer":"","geslachtsnaam":"Williams","voorvoegselGeslachtsnaam":"","voorletters":"H","voornamen":"Nicole","geslachtsaanduiding":"","geboortedatum":"1973-02-23","verblijfsadres":null,"subVerblijfBuitenland":null}}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '729'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/abd7a618-1177-4d17-a9d9-a3b6f9ee8606","bronorganisatie":"613907826","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"","voorvoegselAchternaam":"","achternaam":"","telefoonnummer":"","emailadres":"","adres":null,"subject":"","subjectType":"niet_natuurlijk_persoon","aanmaakkanaal":"","geverifieerd":false,"subjectIdentificatie":{"innNnpId":"807371440","annIdentificatie":"","statutaireNaam":"Foobar
18+
Inc.","innRechtsvorm":"vereniging_van_eigenaars","bezoekadres":"Masonhof 351\n6335
19+
OX\nMetslawier","subVerblijfBuitenland":null}}]}'
20+
headers:
21+
API-version:
22+
- 1.0.0
23+
Allow:
24+
- GET, POST, HEAD, OPTIONS
25+
Content-Length:
26+
- '660'
27+
Content-Type:
28+
- application/json
29+
Referrer-Policy:
30+
- same-origin
31+
X-Content-Type-Options:
32+
- nosniff
33+
X-Frame-Options:
34+
- DENY
35+
X-XSS-Protection:
36+
- 1; mode=block
37+
status:
38+
code: 200
39+
message: OK
40+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/c59c00b3-3445-4731-8a6b-ee26992a5358","bronorganisatie":"892036175","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"","voorvoegselAchternaam":"","achternaam":"","telefoonnummer":"","emailadres":"","adres":null,"subject":"","subjectType":null,"aanmaakkanaal":"","geverifieerd":false}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '416'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/c29538c1-98b8-4773-8ac1-f0af110d92f9","bronorganisatie":"620357848","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"Harry","voorvoegselAchternaam":"","achternaam":"Potter","telefoonnummer":"","emailadres":"","adres":null,"subject":"","subjectType":"natuurlijk_persoon","aanmaakkanaal":"","geverifieerd":false,"subjectIdentificatie":{"inpBsn":"024325818","anpIdentificatie":"0","inpANummer":"","geslachtsnaam":"Williams","voorvoegselGeslachtsnaam":"","voorletters":"H","voornamen":"Nicole","geslachtsaanduiding":"","geboortedatum":"1973-02-23","verblijfsadres":null,"subVerblijfBuitenland":null}}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '729'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
version: 1

migration/cassettes/test_pagination.yaml

+74
Large diffs are not rendered by default.
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/7853958c-4ff1-4b62-bb81-1277346692bf","bronorganisatie":"719250341","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"Harry","voorvoegselAchternaam":"","achternaam":"Potter","telefoonnummer":"","emailadres":"","adres":null,"subject":"","subjectType":"natuurlijk_persoon","aanmaakkanaal":"","geverifieerd":false,"subjectIdentificatie":{"inpBsn":"024325818","anpIdentificatie":"0","inpANummer":"","geslachtsnaam":"Huffman","voorvoegselGeslachtsnaam":"","voorletters":"H","voornamen":"Frank","geslachtsaanduiding":"","geboortedatum":"2005-09-30","verblijfsadres":null,"subVerblijfBuitenland":null}}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '727'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
version: 1
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- python-requests/2.32.3
13+
method: GET
14+
uri: http://localhost:8000/klanten/api/v1/klanten
15+
response:
16+
body:
17+
string: '{"count":1,"next":null,"previous":null,"results":[{"url":"http://localhost:8000/klanten/api/v1/klanten/b27668f2-01ac-447e-a7d1-83ec80e42abe","bronorganisatie":"016752934","klantnummer":"0","bedrijfsnaam":"","functie":"","websiteUrl":"","voornaam":"","voorvoegselAchternaam":"","achternaam":"","telefoonnummer":"","emailadres":"","adres":null,"subject":"http://localhost:8010","subjectType":null,"aanmaakkanaal":"","geverifieerd":false}]}'
18+
headers:
19+
API-version:
20+
- 1.0.0
21+
Allow:
22+
- GET, POST, HEAD, OPTIONS
23+
Content-Length:
24+
- '437'
25+
Content-Type:
26+
- application/json
27+
Referrer-Policy:
28+
- same-origin
29+
X-Content-Type-Options:
30+
- nosniff
31+
X-Frame-Options:
32+
- DENY
33+
X-XSS-Protection:
34+
- 1; mode=block
35+
status:
36+
code: 200
37+
message: OK
38+
- request:
39+
body: null
40+
headers:
41+
Accept:
42+
- '*/*'
43+
Accept-Encoding:
44+
- gzip, deflate
45+
Connection:
46+
- keep-alive
47+
User-Agent:
48+
- python-requests/2.32.3
49+
method: GET
50+
uri: http://localhost:8010/
51+
response:
52+
body:
53+
string: '{"error": "Resource not found"}'
54+
headers:
55+
Content-type:
56+
- application/json
57+
Date:
58+
- Thu, 14 Nov 2024 14:41:42 GMT
59+
Server:
60+
- BaseHTTP/0.6 Python/3.10.0
61+
status:
62+
code: 404
63+
message: Not Found
64+
version: 1

0 commit comments

Comments
 (0)