Skip to content

Commit

Permalink
Merge pull request #3111 from SEED-platform/Update-vcr-files
Browse files Browse the repository at this point in the history
Update vrc files
  • Loading branch information
macintoshpie committed Jan 25, 2022
2 parents 9db7705 + 629a9da commit b7c0114
Show file tree
Hide file tree
Showing 11 changed files with 356 additions and 383 deletions.
434 changes: 214 additions & 220 deletions seed/tests/data/vcr_cassettes/geocode_101_unique_addresses.yaml

Large diffs are not rendered by default.

44 changes: 20 additions & 24 deletions seed/tests/data/vcr_cassettes/geocode_base_case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,50 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.20.0
- python-requests/2.22.0
method: GET
uri: https://www.mapquestapi.com/geocoding/v1/batch?inFormat=json&json=%7B%22locations%22%3A+%5B%7B%22street%22%3A+%223001+Brighton+Blvd%2C+suite+2693%2C+Denver%2C+Colorado%2C+80216%22%7D%5D%7D&maxResults=2&outFormat=json&thumbMaps=false
response:
body:
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2019 MapQuest,
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2022 MapQuest,
Inc.","imageUrl":"http://api.mqcdn.com/res/mqlogo.gif","imageAltText":"\u00A9
2019 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"3001
2022 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"3001
Brighton Blvd, suite 2693, Denver, Colorado, 80216"},"locations":[{"street":"3001
Brighton Blvd, SUITE 2693","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80216-5014","geocodeQualityCode":"P1AAA","geocodeQuality":"POINT","dragPoint":false,"sideOfStreet":"L","linkId":"r11913793|p227333290|n14782249","unknownInput":"","type":"s","latLng":{"lat":39.764984,"lng":-104.985765},"displayLatLng":{"lat":39.765251,"lng":-104.986138},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.764984,-104.985765|marker-sm-50318A-1&scalebar=true&zoom=15&rand=462996714"}]}]}'
Brighton Blvd, SUITE 2693","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80216-5014","geocodeQualityCode":"P1AAA","geocodeQuality":"POINT","dragPoint":false,"sideOfStreet":"L","linkId":"r51694442|p203945262|n253616579","unknownInput":"","type":"s","latLng":{"lat":39.764909,"lng":-104.985856},"displayLatLng":{"lat":39.765251,"lng":-104.986138},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.764909,-104.985856|marker-sm-50318A-1&scalebar=true&zoom=15&rand=1450279607"}]}]}'
headers:
Access-Control-Allow-Methods:
- OPTIONS,GET,POST
Access-Control-Allow-Origin:
- '*'
Cache-Control:
- no-cache, must-revalidate
Content-Length:
- '1132'
Content-Type:
- application/json;charset=UTF-8
Date:
- Sat, 12 Oct 2019 17:07:24 GMT
- Tue, 25 Jan 2022 16:45:44 GMT
Expires:
- Mon, 20 Dec 1998 01:00:00 GMT
GeocodeTransactionCount:
- '1'
Last-Modified:
- Sat, 12 Oct 2019 17:07:24 GMT
- Tue, 25 Jan 2022 16:45:44 GMT
Pragma:
- no-cache
ReverseGeocodeTransactionCount:
- '0'
Server:
- Apache-Coyote/1.1
Set-Cookie:
- JSESSIONID=97F375BA14409FFE030776F4BAA24BE1; Path=/; HttpOnly; Secure
- JSESSIONID=D91900A9DDA4F1437EA508FA186F4EE7; Path=/; HttpOnly; Secure
Strict-Transport-Security:
- max-age=0
Transfer-Encoding:
- chunked
status:
- success
transactionWeight:
- '1.0'
status:
code: 200
message: OK
message: ''
- request:
body: null
headers:
Expand All @@ -65,50 +63,48 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.20.0
- python-requests/2.22.0
method: GET
uri: https://www.mapquestapi.com/geocoding/v1/batch?inFormat=json&json=%7B%22locations%22%3A+%5B%7B%22street%22%3A+%222020+Lawrence+St%2C+unit+A%2C+Denver%2C+Colorado%2C+80205%22%7D%5D%7D&maxResults=2&outFormat=json&thumbMaps=false
response:
body:
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2019 MapQuest,
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2022 MapQuest,
Inc.","imageUrl":"http://api.mqcdn.com/res/mqlogo.gif","imageAltText":"\u00A9
2019 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"2020
2022 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"2020
Lawrence St, unit A, Denver, Colorado, 80205"},"locations":[{"street":"2020
Lawrence St, UNIT A","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80205-2031","geocodeQualityCode":"P1AAA","geocodeQuality":"POINT","dragPoint":false,"sideOfStreet":"R","linkId":"r11588406|p216664175|n14303986","unknownInput":"","type":"s","latLng":{"lat":39.752603,"lng":-104.991315},"displayLatLng":{"lat":39.752396,"lng":-104.991046},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.752603,-104.991315|marker-sm-50318A-1&scalebar=true&zoom=15&rand=556910552"}]}]}'
Lawrence St, UNIT A","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80205-2031","geocodeQualityCode":"P1AAA","geocodeQuality":"POINT","dragPoint":false,"sideOfStreet":"R","linkId":"r52326395|p224177736|n254415010","unknownInput":"","type":"s","latLng":{"lat":39.752599,"lng":-104.99132},"displayLatLng":{"lat":39.75251,"lng":-104.991205},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.752599,-104.99132|marker-sm-50318A-1&scalebar=true&zoom=15&rand=-990148020"}]}]}'
headers:
Access-Control-Allow-Methods:
- OPTIONS,GET,POST
Access-Control-Allow-Origin:
- '*'
Cache-Control:
- no-cache, must-revalidate
Content-Length:
- '1117'
Content-Type:
- application/json;charset=UTF-8
Date:
- Sat, 12 Oct 2019 17:07:25 GMT
- Tue, 25 Jan 2022 16:45:45 GMT
Expires:
- Mon, 20 Dec 1998 01:00:00 GMT
GeocodeTransactionCount:
- '1'
Last-Modified:
- Sat, 12 Oct 2019 17:07:25 GMT
- Tue, 25 Jan 2022 16:45:45 GMT
Pragma:
- no-cache
ReverseGeocodeTransactionCount:
- '0'
Server:
- Apache-Coyote/1.1
Set-Cookie:
- JSESSIONID=C23BEBA164AD46A01BC59B62FFD70E40; Path=/; HttpOnly; Secure
- JSESSIONID=E1B0F9C1682B6A3AC8D429CA274FD79B; Path=/; HttpOnly; Secure
Strict-Transport-Security:
- max-age=0
Transfer-Encoding:
- chunked
status:
- success
transactionWeight:
- '1.0'
status:
code: 200
message: OK
message: ''
version: 1
22 changes: 10 additions & 12 deletions seed/tests/data/vcr_cassettes/geocode_dup_addresses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,48 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.20.0
- python-requests/2.22.0
method: GET
uri: https://www.mapquestapi.com/geocoding/v1/batch?inFormat=json&json=%7B%22locations%22%3A+%5B%7B%22street%22%3A+%223001+Brighton+Blvd%2C+suite+2693%2C+Denver%2C+Colorado%2C+80216%22%7D%5D%7D&maxResults=2&outFormat=json&thumbMaps=false
response:
body:
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2019 MapQuest,
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2022 MapQuest,
Inc.","imageUrl":"http://api.mqcdn.com/res/mqlogo.gif","imageAltText":"\u00A9
2019 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"3001
2022 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"3001
Brighton Blvd, suite 2693, Denver, Colorado, 80216"},"locations":[{"street":"3001
Brighton Blvd, SUITE 2693","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80216-5014","geocodeQualityCode":"P1AAA","geocodeQuality":"POINT","dragPoint":false,"sideOfStreet":"L","linkId":"r11913793|p227333290|n14782249","unknownInput":"","type":"s","latLng":{"lat":39.764984,"lng":-104.985765},"displayLatLng":{"lat":39.765251,"lng":-104.986138},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.764984,-104.985765|marker-sm-50318A-1&scalebar=true&zoom=15&rand=24544367"}]}]}'
Brighton Blvd, SUITE 2693","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80216-5014","geocodeQualityCode":"P1AAA","geocodeQuality":"POINT","dragPoint":false,"sideOfStreet":"L","linkId":"r51694442|p203945262|n253616579","unknownInput":"","type":"s","latLng":{"lat":39.764909,"lng":-104.985856},"displayLatLng":{"lat":39.765251,"lng":-104.986138},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.764909,-104.985856|marker-sm-50318A-1&scalebar=true&zoom=15&rand=433266090"}]}]}'
headers:
Access-Control-Allow-Methods:
- OPTIONS,GET,POST
Access-Control-Allow-Origin:
- '*'
Cache-Control:
- no-cache, must-revalidate
Content-Length:
- '1131'
Content-Type:
- application/json;charset=UTF-8
Date:
- Sat, 12 Oct 2019 17:07:09 GMT
- Tue, 25 Jan 2022 16:45:32 GMT
Expires:
- Mon, 20 Dec 1998 01:00:00 GMT
GeocodeTransactionCount:
- '1'
Last-Modified:
- Sat, 12 Oct 2019 17:07:09 GMT
- Tue, 25 Jan 2022 16:45:32 GMT
Pragma:
- no-cache
ReverseGeocodeTransactionCount:
- '0'
Server:
- Apache-Coyote/1.1
Set-Cookie:
- JSESSIONID=EC601BE5C497B7BCCF80EB7AE6ABFE90; Path=/; HttpOnly; Secure
- JSESSIONID=ED3D2321F147D035F1EF7F0407688FC3; Path=/; HttpOnly; Secure
Strict-Transport-Security:
- max-age=0
Transfer-Encoding:
- chunked
status:
- success
transactionWeight:
- '1.0'
status:
code: 200
message: OK
message: ''
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.20.0
- python-requests/2.22.0
method: GET
uri: https://www.mapquestapi.com/geocoding/v1/batch?inFormat=json&json=%7B%22locations%22%3A+%5B%7B%22street%22%3A+%223001+Brighton+Blvd%2C+suite+2693%2C+Denver%2C+Colorado%2C+80216%22%7D%5D%7D&maxResults=2&outFormat=json&thumbMaps=false
response:
Expand All @@ -25,7 +25,7 @@ interactions:
Content-Type:
- text/plain
Date:
- Sat, 12 Oct 2019 17:07:20 GMT
- Tue, 25 Jan 2022 16:45:39 GMT
Strict-Transport-Security:
- max-age=0
status:
Expand Down
40 changes: 18 additions & 22 deletions seed/tests/data/vcr_cassettes/geocode_low_geocodequality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.20.0
- python-requests/2.22.0
method: GET
uri: https://www.mapquestapi.com/geocoding/v1/batch?inFormat=json&json=%7B%22locations%22%3A+%5B%7B%22street%22%3A+%22Colorado%2C+80202%22%7D%5D%7D&maxResults=2&outFormat=json&thumbMaps=false
response:
body:
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2019 MapQuest,
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2022 MapQuest,
Inc.","imageUrl":"http://api.mqcdn.com/res/mqlogo.gif","imageAltText":"\u00A9
2019 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"Colorado,
2022 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"Colorado,
80202"},"locations":[{"street":"","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver
County","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80202","geocodeQualityCode":"Z1XAA","geocodeQuality":"ZIP","dragPoint":false,"sideOfStreet":"N","linkId":"286301816","unknownInput":"","type":"s","latLng":{"lat":39.751787,"lng":-104.997035},"displayLatLng":{"lat":39.751787,"lng":-104.997035},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.751787,-104.997035|marker-sm-50318A-1&scalebar=true&zoom=15&rand=-659302199"}]}]}'
County","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"80202","geocodeQualityCode":"Z1XAA","geocodeQuality":"ZIP","dragPoint":false,"sideOfStreet":"N","linkId":"286301816","unknownInput":"","type":"s","latLng":{"lat":39.751787,"lng":-104.997035},"displayLatLng":{"lat":39.751787,"lng":-104.997035},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.751787,-104.997035|marker-sm-50318A-1&scalebar=true&zoom=15&rand=-915842469"}]}]}'
headers:
Access-Control-Allow-Methods:
- OPTIONS,GET,POST
Expand All @@ -31,21 +31,19 @@ interactions:
Content-Type:
- application/json;charset=UTF-8
Date:
- Mon, 21 Oct 2019 20:23:11 GMT
- Tue, 25 Jan 2022 16:45:40 GMT
Expires:
- Mon, 20 Dec 1998 01:00:00 GMT
GeocodeTransactionCount:
- '1'
Last-Modified:
- Mon, 21 Oct 2019 20:23:12 GMT
- Tue, 25 Jan 2022 16:45:40 GMT
Pragma:
- no-cache
ReverseGeocodeTransactionCount:
- '0'
Server:
- Apache-Coyote/1.1
Set-Cookie:
- JSESSIONID=842E0840536221D3A5EF62B6F94B5CEC; Path=/; HttpOnly; Secure
- JSESSIONID=C8FB2D95085319E026EE0C6578126821; Path=/; HttpOnly; Secure
Strict-Transport-Security:
- max-age=0
status:
Expand All @@ -54,7 +52,7 @@ interactions:
- '1.0'
status:
code: 200
message: OK
message: ''
- request:
body: null
headers:
Expand All @@ -65,50 +63,48 @@ interactions:
Connection:
- keep-alive
User-Agent:
- python-requests/2.20.0
- python-requests/2.22.0
method: GET
uri: https://www.mapquestapi.com/geocoding/v1/batch?inFormat=json&json=%7B%22locations%22%3A+%5B%7B%22street%22%3A+%22Denver%2C+Colorado%22%7D%5D%7D&maxResults=2&outFormat=json&thumbMaps=false
response:
body:
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2019 MapQuest,
string: '{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2022 MapQuest,
Inc.","imageUrl":"http://api.mqcdn.com/res/mqlogo.gif","imageAltText":"\u00A9
2019 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"Denver,
2022 MapQuest, Inc."},"messages":[]},"options":{"maxResults":-1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"street":"Denver,
Colorado"},"locations":[{"street":"","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"Denver","adminArea5Type":"City","adminArea4":"Denver
County","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"","geocodeQualityCode":"A5XAX","geocodeQuality":"CITY","dragPoint":false,"sideOfStreet":"N","linkId":"282041090","unknownInput":"","type":"s","latLng":{"lat":39.738453,"lng":-104.984853},"displayLatLng":{"lat":39.738453,"lng":-104.984853},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.738453,-104.984853|marker-sm-50318A-1&scalebar=true&zoom=12&rand=-148576992"}]}]}'
County","adminArea4Type":"County","adminArea3":"CO","adminArea3Type":"State","adminArea1":"US","adminArea1Type":"Country","postalCode":"","geocodeQualityCode":"A5XAX","geocodeQuality":"CITY","dragPoint":false,"sideOfStreet":"N","linkId":"282041090","unknownInput":"","type":"s","latLng":{"lat":39.738453,"lng":-104.984853},"displayLatLng":{"lat":39.738453,"lng":-104.984853},"mapUrl":"http://www.mapquestapi.com/staticmap/v5/map?key=key&type=map&size=225,160&locations=39.738453,-104.984853|marker-sm-50318A-1&scalebar=true&zoom=12&rand=-1446631964"}]}]}'
headers:
Access-Control-Allow-Methods:
- OPTIONS,GET,POST
Access-Control-Allow-Origin:
- '*'
Cache-Control:
- no-cache, must-revalidate
Content-Length:
- '1038'
Content-Type:
- application/json;charset=UTF-8
Date:
- Mon, 21 Oct 2019 20:23:12 GMT
- Tue, 25 Jan 2022 16:45:41 GMT
Expires:
- Mon, 20 Dec 1998 01:00:00 GMT
GeocodeTransactionCount:
- '1'
Last-Modified:
- Mon, 21 Oct 2019 20:23:12 GMT
- Tue, 25 Jan 2022 16:45:41 GMT
Pragma:
- no-cache
ReverseGeocodeTransactionCount:
- '0'
Server:
- Apache-Coyote/1.1
Set-Cookie:
- JSESSIONID=5BAF0702352158FDF1A0D565C0CBF991; Path=/; HttpOnly; Secure
- JSESSIONID=DDF29F98C23A647EAB6FAF2FC6BF4AA4; Path=/; HttpOnly; Secure
Strict-Transport-Security:
- max-age=0
Transfer-Encoding:
- chunked
status:
- success
transactionWeight:
- '1.0'
status:
code: 200
message: OK
message: ''
version: 1

0 comments on commit b7c0114

Please sign in to comment.