Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: append user agent to default user agent #123

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: re record cassettes
  • Loading branch information
SlowMo24 committed Nov 16, 2023
commit f2633865a8b6606a92a30bc8d962179d7dc6440b
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -43,7 +43,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:17 GMT
- Thu, 16 Nov 2023 11:38:08 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -44,7 +44,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:16 GMT
- Thu, 16 Nov 2023 11:38:07 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:17 GMT
- Thu, 16 Nov 2023 11:38:08 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:20 GMT
- Thu, 16 Nov 2023 11:38:12 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
20 changes: 10 additions & 10 deletions ohsome/test/cassettes/test_client/test_format_bboxes_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:22 GMT
- Thu, 16 Nov 2023 11:38:13 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -70,7 +70,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -99,7 +99,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:22 GMT
- Thu, 16 Nov 2023 11:38:13 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -127,7 +127,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -156,7 +156,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:22 GMT
- Thu, 16 Nov 2023 11:38:13 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -184,7 +184,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -213,7 +213,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:23 GMT
- Thu, 16 Nov 2023 11:38:14 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -241,7 +241,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -270,7 +270,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:23 GMT
- Thu, 16 Nov 2023 11:38:14 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count/groupBy/boundary
response:
Expand Down Expand Up @@ -45,7 +45,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:18 GMT
- Thu, 16 Nov 2023 11:38:08 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count/groupBy/boundary
response:
Expand Down Expand Up @@ -51,7 +51,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:20 GMT
- Thu, 16 Nov 2023 11:38:11 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
16 changes: 8 additions & 8 deletions ohsome/test/cassettes/test_client/test_format_bcircles_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:18 GMT
- Thu, 16 Nov 2023 11:38:09 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -70,7 +70,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count/groupBy/boundary
response:
Expand Down Expand Up @@ -102,7 +102,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:18 GMT
- Thu, 16 Nov 2023 11:38:09 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -130,7 +130,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -159,7 +159,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:19 GMT
- Thu, 16 Nov 2023 11:38:09 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -187,7 +187,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -216,7 +216,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:19 GMT
- Thu, 16 Nov 2023 11:38:11 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
4 changes: 2 additions & 2 deletions ohsome/test/cassettes/test_client/test_format_bpolys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:20 GMT
- Thu, 16 Nov 2023 11:38:12 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/contributions/latest/bbox
response:
Expand Down Expand Up @@ -50,7 +50,7 @@ interactions:
Content-disposition:
- attachment;filename=ohsome.geojson
Date:
- Thu, 16 Nov 2023 11:12:23 GMT
- Thu, 16 Nov 2023 11:38:15 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -78,7 +78,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/contributions/latest/bbox
response:
Expand Down Expand Up @@ -115,7 +115,7 @@ interactions:
Content-disposition:
- attachment;filename=ohsome.geojson
Date:
- Thu, 16 Nov 2023 11:12:25 GMT
- Thu, 16 Nov 2023 11:38:15 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
4 changes: 2 additions & 2 deletions ohsome/test/cassettes/test_client/test_user_agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: GET
uri: https://api.ohsome.org/v1/metadata
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:16 GMT
- Thu, 16 Nov 2023 11:38:07 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/geometry
response:
body:
string: "{\n \"timestamp\" : \"2023-11-16T11:12:25.74208788\",\n \"status\"
string: "{\n \"timestamp\" : \"2023-11-16T11:38:16.745637048\",\n \"status\"
: 413,\n \"message\" : \"The given query is too large in respect to the given
timeout. Please use a smaller region and/or coarser time period.\",\n \"requestUrl\"
: \"https://api.ohsome.org/v1/elements/geometry\"\n}"
Expand All @@ -44,7 +44,7 @@ interactions:
Content-disposition:
- attachment;filename=ohsome.geojson
Date:
- Thu, 16 Nov 2023 11:12:25 GMT
- Thu, 16 Nov 2023 11:38:15 GMT
Server:
- Apache
Strict-Transport-Security:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.2.0 ohsome-py
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 16 Nov 2023 11:12:33 GMT
- Thu, 16 Nov 2023 11:38:22 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Loading