-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ [#4398] Fix coverage for Objects API ownership validation
- Loading branch information
1 parent
22b6430
commit 1cd37e4
Showing
3 changed files
with
294 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
202 changes: 202 additions & 0 deletions
202
...ValidatorTests.test_ownership_check_fails_if_auth_attribute_path_is_badly_configured.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
interactions: | ||
- request: | ||
body: '{"type": "http://objecttypes-web:8000/api/v2/objecttypes/8faed0fa-7864-4409-aa6d-533a37616a9e", | ||
"record": {"typeVersion": 1, "data": {"nested": {"bsn": "111222333"}, "foo": | ||
"bar"}, "startAt": "2024-11-29"}}' | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Token 7657474c3d75f56ae0abd0d1bf7994b09964dca9 | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '206' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- python-requests/2.32.2 | ||
method: POST | ||
uri: http://localhost:8002/api/v2/objects | ||
response: | ||
body: | ||
string: '{"url":"http://objects-web:8000/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c","uuid":"c614f674-04dc-435f-a801-99277148b69c","type":"http://objecttypes-web:8000/api/v2/objecttypes/8faed0fa-7864-4409-aa6d-533a37616a9e","record":{"index":1,"typeVersion":1,"data":{"nested":{"bsn":"111222333"},"foo":"bar"},"geometry":null,"startAt":"2024-11-29","endAt":null,"registrationAt":"2024-11-29","correctionFor":null,"correctedBy":null}}' | ||
headers: | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '433' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 29 Nov 2024 09:50:58 GMT | ||
Location: | ||
- http://localhost:8002/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.27.0 | ||
Vary: | ||
- origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 201 | ||
message: Created | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Token 7657474c3d75f56ae0abd0d1bf7994b09964dca9 | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
User-Agent: | ||
- python-requests/2.32.2 | ||
method: GET | ||
uri: http://localhost:8002/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c | ||
response: | ||
body: | ||
string: '{"url":"http://objects-web:8000/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c","uuid":"c614f674-04dc-435f-a801-99277148b69c","type":"http://objecttypes-web:8000/api/v2/objecttypes/8faed0fa-7864-4409-aa6d-533a37616a9e","record":{"index":1,"typeVersion":1,"data":{"foo":"bar","nested":{"bsn":"111222333"}},"geometry":null,"startAt":"2024-11-29","endAt":null,"registrationAt":"2024-11-29","correctionFor":null,"correctedBy":null}}' | ||
headers: | ||
Allow: | ||
- GET, PUT, PATCH, DELETE, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '433' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 29 Nov 2024 09:50:58 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.27.0 | ||
Vary: | ||
- origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Token 7657474c3d75f56ae0abd0d1bf7994b09964dca9 | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
User-Agent: | ||
- python-requests/2.32.2 | ||
method: GET | ||
uri: http://localhost:8002/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c | ||
response: | ||
body: | ||
string: '{"url":"http://objects-web:8000/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c","uuid":"c614f674-04dc-435f-a801-99277148b69c","type":"http://objecttypes-web:8000/api/v2/objecttypes/8faed0fa-7864-4409-aa6d-533a37616a9e","record":{"index":1,"typeVersion":1,"data":{"foo":"bar","nested":{"bsn":"111222333"}},"geometry":null,"startAt":"2024-11-29","endAt":null,"registrationAt":"2024-11-29","correctionFor":null,"correctedBy":null}}' | ||
headers: | ||
Allow: | ||
- GET, PUT, PATCH, DELETE, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '433' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 29 Nov 2024 09:50:58 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.27.0 | ||
Vary: | ||
- origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate, br | ||
Authorization: | ||
- Token 7657474c3d75f56ae0abd0d1bf7994b09964dca9 | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
User-Agent: | ||
- python-requests/2.32.2 | ||
method: GET | ||
uri: http://localhost:8002/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c | ||
response: | ||
body: | ||
string: '{"url":"http://objects-web:8000/api/v2/objects/c614f674-04dc-435f-a801-99277148b69c","uuid":"c614f674-04dc-435f-a801-99277148b69c","type":"http://objecttypes-web:8000/api/v2/objecttypes/8faed0fa-7864-4409-aa6d-533a37616a9e","record":{"index":1,"typeVersion":1,"data":{"foo":"bar","nested":{"bsn":"111222333"}},"geometry":null,"startAt":"2024-11-29","endAt":null,"registrationAt":"2024-11-29","correctionFor":null,"correctedBy":null}}' | ||
headers: | ||
Allow: | ||
- GET, PUT, PATCH, DELETE, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Crs: | ||
- EPSG:4326 | ||
Content-Length: | ||
- '433' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 29 Nov 2024 09:50:58 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.27.0 | ||
Vary: | ||
- origin | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters