Skip to content

Commit

Permalink
Update vcrpy and cassettes to resolve missing version_string
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Jan 15, 2025
1 parent bff21df commit 38eef71
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 66 deletions.
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ python-dotenv = "^1.0.0"
geojson = "^3.1.0"
accept-types = "^0.4.1"
moto = "^5.0.9"
vcrpy = "^6.0.1"
vcrpy = "^7.0.0"
python-cmr = "^0.13.0"

[tool.poetry.group.dev.dependencies]
Expand Down
74 changes: 37 additions & 37 deletions tests/vcr_cassettes/cmr_query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interactions:
uri: https://cmr.earthdata.nasa.gov/search/granules.umm_json?short_name=SWOT_L2_HR_RiverSP_2.0&revision_date%5B%5D=2024-06-30T00:00:00Z,2024-06-30T12:00:00Z&page_size=0
response:
body:
string: '{"hits":118,"took":206,"items":[]}'
string: '{"hits":118,"took":88,"items":[]}'
headers:
Access-Control-Allow-Origin:
- '*'
Expand All @@ -24,19 +24,19 @@ interactions:
CMR-Hits:
- '118'
CMR-Request-Id:
- 3251a0c0-42d3-4387-bd9f-7c087cb4e3e1
- 500f3a4c-f44c-427f-9f92-c1801c78ed01
CMR-Took:
- '207'
- '106'
Connection:
- keep-alive
Content-MD5:
- 8ed25fd0dd60d40594a9c7645db484b7
- 6e2b9cdfbe8774425317301b0d563135
Content-SHA1:
- c773d40f88dcab15f6630f64df8f26bf3aa85469
- 62d546c7c108e60e5b0bd11aac7f4475b1f93133
Content-Type:
- application/vnd.nasa.cmr.umm_results+json;version=1.6.6; charset=utf-8
Date:
- Thu, 24 Oct 2024 15:22:59 GMT
- Wed, 15 Jan 2025 21:11:33 GMT
Server:
- ServerTokens ProductOnly
Strict-Transport-Security:
Expand All @@ -46,9 +46,9 @@ interactions:
Vary:
- Accept-Encoding, User-Agent
Via:
- 1.1 1e94f8bfedca9b1ad3b9259538f9432a.cloudfront.net (CloudFront)
- 1.1 2e1ee7384096c6afb6c1cfc9e9f5f23e.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- M7W3Ckr1IRQDAjKJA4zE09TofRMLP2Bya8OdfiHJJPuFak56oszHlw==
- 56BBPMTBqtS_gwpUw5Mi-Wc2yW1OHQVwXeaunqriDrP3zUI0HVXrpA==
X-Amz-Cf-Pop:
- LAX50-C1
X-Cache:
Expand All @@ -58,11 +58,11 @@ interactions:
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- M7W3Ckr1IRQDAjKJA4zE09TofRMLP2Bya8OdfiHJJPuFak56oszHlw==
- 56BBPMTBqtS_gwpUw5Mi-Wc2yW1OHQVwXeaunqriDrP3zUI0HVXrpA==
X-XSS-Protection:
- 1; mode=block
content-length:
- '34'
- '33'
status:
code: 200
message: OK
Expand All @@ -81,7 +81,7 @@ interactions:
uri: https://cmr.earthdata.nasa.gov/search/granules.umm_json?short_name=SWOT_L2_HR_RiverSP_2.0&revision_date%5B%5D=2024-06-30T00:00:00Z,2024-06-30T12:00:00Z&page_size=118
response:
body:
string: '{"hits":118,"took":313,"items":[{"meta":{"concept-type":"granule","concept-id":"G3137977015-POCLOUD","revision-id":1,"native-id":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","collection-concept-id":"C2799438299-POCLOUD","provider-id":"POCLOUD","format":"application/vnd.nasa.cmr.umm+json","revision-date":"2024-06-30T00:42:40.194Z"},"umm":{"TemporalExtent":{"RangeDateTime":{"EndingDateTime":"2024-06-25T05:58:15.939Z","BeginningDateTime":"2024-06-25T05:58:13.052Z"}},"GranuleUR":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","AdditionalAttributes":[{"Values":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"],"Name":"TILE"}],"MeasuredParameters":[{"QAStats":{"QAPercentMissingData":0,"QAPercentOutOfBoundsData":0},"ParameterName":"N/A"}],"SpatialExtent":{"HorizontalSpatialDomain":{"Geometry":{"BoundingRectangles":[{"WestBoundingCoordinate":54.050507667452564,"SouthBoundingCoordinate":73.26293577873935,"EastBoundingCoordinate":59.35347911332951,"NorthBoundingCoordinate":74.78543869614185}]},"Track":{"Cycle":17,"Passes":[{"Pass":174,"Tiles":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"]}]}}},"ProviderDates":[{"Type":"Insert","Date":"2024-06-30T00:42:34.330Z"},{"Type":"Update","Date":"2024-06-30T00:42:34.331Z"}],"CollectionReference":{"Version":"2.0","ShortName":"SWOT_L2_HR_RiverSP_2.0"},"PGEVersionClass":{"PGEName":"PGE_L2_HR_RiverSP","PGEVersion":"5.0.4"},"RelatedUrls":[{"URL":"https://archive.swot.podaac.earthdata.nasa.gov/podaac-swot-ops-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Description":"Download
string: '{"hits":118,"took":125,"items":[{"meta":{"concept-type":"granule","concept-id":"G3137977015-POCLOUD","revision-id":1,"native-id":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","collection-concept-id":"C2799438299-POCLOUD","provider-id":"POCLOUD","format":"application/vnd.nasa.cmr.umm+json","revision-date":"2024-06-30T00:42:40.194Z"},"umm":{"TemporalExtent":{"RangeDateTime":{"EndingDateTime":"2024-06-25T05:58:15.939Z","BeginningDateTime":"2024-06-25T05:58:13.052Z"}},"GranuleUR":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","AdditionalAttributes":[{"Values":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"],"Name":"TILE"}],"MeasuredParameters":[{"QAStats":{"QAPercentMissingData":0,"QAPercentOutOfBoundsData":0},"ParameterName":"N/A"}],"SpatialExtent":{"HorizontalSpatialDomain":{"Geometry":{"BoundingRectangles":[{"WestBoundingCoordinate":54.050507667452564,"SouthBoundingCoordinate":73.26293577873935,"EastBoundingCoordinate":59.35347911332951,"NorthBoundingCoordinate":74.78543869614185}]},"Track":{"Cycle":17,"Passes":[{"Pass":174,"Tiles":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"]}]}}},"ProviderDates":[{"Type":"Insert","Date":"2024-06-30T00:42:34.330Z"},{"Type":"Update","Date":"2024-06-30T00:42:34.331Z"}],"CollectionReference":{"Version":"2.0","ShortName":"SWOT_L2_HR_RiverSP_2.0"},"PGEVersionClass":{"PGEName":"PGE_L2_HR_RiverSP","PGEVersion":"5.0.4"},"RelatedUrls":[{"URL":"https://archive.swot.podaac.earthdata.nasa.gov/podaac-swot-ops-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Description":"Download
SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Type":"EXTENDED
METADATA"},{"URL":"s3://podaac-swot-ops-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Description":"This
link provides direct download access via S3 to the granule","Type":"EXTENDED
Expand Down Expand Up @@ -2805,21 +2805,21 @@ interactions:
CMR-Hits:
- '118'
CMR-Request-Id:
- c91fe32a-111c-40b8-b69d-2eebd39bc30c
- 8e666a56-d543-426e-83a5-ceba3e1cdb02
CMR-Search-After:
- '["pocloud",1719436235696,3138568332]'
CMR-Took:
- '345'
- '142'
Connection:
- keep-alive
Content-MD5:
- ff450a751f996ca6d4d0bcdd3b2b7c4d
- b504173da424374581d5346fda613f6a
Content-SHA1:
- 90331994aaab566ce6d530c2d9983d98af58b93b
- fb4ade41508f3bf68c6bb79e6ac0f87b2c2e7fac
Content-Type:
- application/vnd.nasa.cmr.umm_results+json;version=1.6.6; charset=utf-8
Date:
- Thu, 24 Oct 2024 15:23:00 GMT
- Wed, 15 Jan 2025 21:11:33 GMT
Server:
- ServerTokens ProductOnly
Strict-Transport-Security:
Expand All @@ -2829,9 +2829,9 @@ interactions:
Vary:
- Accept-Encoding, User-Agent
Via:
- 1.1 0931eacdfabebfd9816e3573b4bf15b4.cloudfront.net (CloudFront)
- 1.1 c5d2fc4501e84a29df03002dc65dfcb4.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- 1LPnyeJeFMWBL9OXC243y2DMuY1I7Lo1rJ6NPbJlm0I1TM-L5x_y1Q==
- z1t9yQ8F-5z-MSbqn9eeqWiMzATU42VA2XHv5J2ZePVR5K4BARjbtw==
X-Amz-Cf-Pop:
- LAX50-C1
X-Cache:
Expand All @@ -2841,7 +2841,7 @@ interactions:
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- 1LPnyeJeFMWBL9OXC243y2DMuY1I7Lo1rJ6NPbJlm0I1TM-L5x_y1Q==
- z1t9yQ8F-5z-MSbqn9eeqWiMzATU42VA2XHv5J2ZePVR5K4BARjbtw==
X-XSS-Protection:
- 1; mode=block
content-length:
Expand All @@ -2864,7 +2864,7 @@ interactions:
uri: https://cmr.earthdata.nasa.gov/search/granules.umm_json?short_name=SWOT_L2_HR_RiverSP_2.0&revision_date%5B%5D=2024-06-30T00:00:00Z,2024-06-30T12:00:00Z&page_size=0
response:
body:
string: '{"hits":118,"took":57,"items":[]}'
string: '{"hits":118,"took":26,"items":[]}'
headers:
Access-Control-Allow-Origin:
- '*'
Expand All @@ -2874,19 +2874,19 @@ interactions:
CMR-Hits:
- '118'
CMR-Request-Id:
- 5fc40e34-9e7a-4caa-87e2-18c570031f02
- 4dc35290-a32f-449b-95ae-6f8218801109
CMR-Took:
- '58'
- '27'
Connection:
- keep-alive
Content-MD5:
- 84efb2d9df1b119c46315eba1a5c3ed3
- 83ea325aa30b51d9b1a80fe5aa8723a3
Content-SHA1:
- 0e1539ed1b04aa4f3611748d8264cdc65abbb76e
- 2e7b7db9252e2c8a053d9ae75d289a08165ec117
Content-Type:
- application/vnd.nasa.cmr.umm_results+json;version=1.6.6; charset=utf-8
Date:
- Thu, 24 Oct 2024 15:23:01 GMT
- Wed, 15 Jan 2025 21:11:34 GMT
Server:
- ServerTokens ProductOnly
Strict-Transport-Security:
Expand All @@ -2896,9 +2896,9 @@ interactions:
Vary:
- Accept-Encoding, User-Agent
Via:
- 1.1 37e37f3d71c99a5a71f8e766a6f4b9ee.cloudfront.net (CloudFront)
- 1.1 691a8ff961a1aa9ab272aed6ca2ddafe.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- HfznVr_0tE7XQn-BIShOTBiR682aLyJssj7V7wjdk71T0R2eLA1XeA==
- 4bfPfoYLNF674tODHJHwPV_vC1v9RnBNx-XQdBCUK8kd8dXq2noJzA==
X-Amz-Cf-Pop:
- LAX50-C1
X-Cache:
Expand All @@ -2908,7 +2908,7 @@ interactions:
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- HfznVr_0tE7XQn-BIShOTBiR682aLyJssj7V7wjdk71T0R2eLA1XeA==
- 4bfPfoYLNF674tODHJHwPV_vC1v9RnBNx-XQdBCUK8kd8dXq2noJzA==
X-XSS-Protection:
- 1; mode=block
content-length:
Expand All @@ -2931,7 +2931,7 @@ interactions:
uri: https://cmr.earthdata.nasa.gov/search/granules.umm_json?short_name=SWOT_L2_HR_RiverSP_2.0&revision_date%5B%5D=2024-06-30T00:00:00Z,2024-06-30T12:00:00Z&page_size=118
response:
body:
string: '{"hits":118,"took":370,"items":[{"meta":{"concept-type":"granule","concept-id":"G3137977015-POCLOUD","revision-id":1,"native-id":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","collection-concept-id":"C2799438299-POCLOUD","provider-id":"POCLOUD","format":"application/vnd.nasa.cmr.umm+json","revision-date":"2024-06-30T00:42:40.194Z"},"umm":{"TemporalExtent":{"RangeDateTime":{"EndingDateTime":"2024-06-25T05:58:15.939Z","BeginningDateTime":"2024-06-25T05:58:13.052Z"}},"GranuleUR":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","AdditionalAttributes":[{"Values":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"],"Name":"TILE"}],"MeasuredParameters":[{"QAStats":{"QAPercentMissingData":0,"QAPercentOutOfBoundsData":0},"ParameterName":"N/A"}],"SpatialExtent":{"HorizontalSpatialDomain":{"Geometry":{"BoundingRectangles":[{"WestBoundingCoordinate":54.050507667452564,"SouthBoundingCoordinate":73.26293577873935,"EastBoundingCoordinate":59.35347911332951,"NorthBoundingCoordinate":74.78543869614185}]},"Track":{"Cycle":17,"Passes":[{"Pass":174,"Tiles":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"]}]}}},"ProviderDates":[{"Type":"Insert","Date":"2024-06-30T00:42:34.330Z"},{"Type":"Update","Date":"2024-06-30T00:42:34.331Z"}],"CollectionReference":{"Version":"2.0","ShortName":"SWOT_L2_HR_RiverSP_2.0"},"PGEVersionClass":{"PGEName":"PGE_L2_HR_RiverSP","PGEVersion":"5.0.4"},"RelatedUrls":[{"URL":"https://archive.swot.podaac.earthdata.nasa.gov/podaac-swot-ops-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Description":"Download
string: '{"hits":118,"took":162,"items":[{"meta":{"concept-type":"granule","concept-id":"G3137977015-POCLOUD","revision-id":1,"native-id":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","collection-concept-id":"C2799438299-POCLOUD","provider-id":"POCLOUD","format":"application/vnd.nasa.cmr.umm+json","revision-date":"2024-06-30T00:42:40.194Z"},"umm":{"TemporalExtent":{"RangeDateTime":{"EndingDateTime":"2024-06-25T05:58:15.939Z","BeginningDateTime":"2024-06-25T05:58:13.052Z"}},"GranuleUR":"SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01","AdditionalAttributes":[{"Values":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"],"Name":"TILE"}],"MeasuredParameters":[{"QAStats":{"QAPercentMissingData":0,"QAPercentOutOfBoundsData":0},"ParameterName":"N/A"}],"SpatialExtent":{"HorizontalSpatialDomain":{"Geometry":{"BoundingRectangles":[{"WestBoundingCoordinate":54.050507667452564,"SouthBoundingCoordinate":73.26293577873935,"EastBoundingCoordinate":59.35347911332951,"NorthBoundingCoordinate":74.78543869614185}]},"Track":{"Cycle":17,"Passes":[{"Pass":174,"Tiles":["1L","2L","3L","4L","5L","6L","7L","8L","9L","10L","11L","12L","13L","14L","15L","16L","17L","18L","19L","1R","2R","3R","4R","5R","6R","7R","8R","9R","10R","11R","12R","13R","14R","15R","16R","17R","18R","19R"]}]}}},"ProviderDates":[{"Type":"Insert","Date":"2024-06-30T00:42:34.330Z"},{"Type":"Update","Date":"2024-06-30T00:42:34.331Z"}],"CollectionReference":{"Version":"2.0","ShortName":"SWOT_L2_HR_RiverSP_2.0"},"PGEVersionClass":{"PGEName":"PGE_L2_HR_RiverSP","PGEVersion":"5.0.4"},"RelatedUrls":[{"URL":"https://archive.swot.podaac.earthdata.nasa.gov/podaac-swot-ops-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Description":"Download
SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Type":"EXTENDED
METADATA"},{"URL":"s3://podaac-swot-ops-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_017_174_EU_20240625T055813_20240625T055815_PIC0_01.rc.xml","Description":"This
link provides direct download access via S3 to the granule","Type":"EXTENDED
Expand Down Expand Up @@ -5655,21 +5655,21 @@ interactions:
CMR-Hits:
- '118'
CMR-Request-Id:
- 4285255f-a3cb-4994-8a91-3362f187f7d0
- 158e9cbb-07af-4243-b65b-1ace77c0f4f4
CMR-Search-After:
- '["pocloud",1719436235696,3138568332]'
CMR-Took:
- '422'
- '180'
Connection:
- keep-alive
Content-MD5:
- 59d5496cbd4dd1c25cb8114f57f464ae
- b547e77f866ae406fb2dddf2980da566
Content-SHA1:
- 218c88cb960de27f0ae5029e258b2498129e8c79
- 56ef766d9af0f420960e2df26a331df730d94a2d
Content-Type:
- application/vnd.nasa.cmr.umm_results+json;version=1.6.6; charset=utf-8
Date:
- Thu, 24 Oct 2024 15:23:02 GMT
- Wed, 15 Jan 2025 21:11:34 GMT
Server:
- ServerTokens ProductOnly
Strict-Transport-Security:
Expand All @@ -5679,9 +5679,9 @@ interactions:
Vary:
- Accept-Encoding, User-Agent
Via:
- 1.1 538a08eba98551a196e344df4d0dda06.cloudfront.net (CloudFront)
- 1.1 691a8ff961a1aa9ab272aed6ca2ddafe.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- jIFCmKc8qA5g3ERrRxLXntM3ZqdjFqkM4gUPj2fCUqSsOiZ_y37Wtg==
- nPtsgrUu8EJ13h4LvP1Cj5JI-xlBLMz3gx4nw5T_MqJX7uk2SiVx0A==
X-Amz-Cf-Pop:
- LAX50-C1
X-Cache:
Expand All @@ -5691,7 +5691,7 @@ interactions:
X-Frame-Options:
- SAMEORIGIN
X-Request-Id:
- jIFCmKc8qA5g3ERrRxLXntM3ZqdjFqkM4gUPj2fCUqSsOiZ_y37Wtg==
- nPtsgrUu8EJ13h4LvP1Cj5JI-xlBLMz3gx4nw5T_MqJX7uk2SiVx0A==
X-XSS-Protection:
- 1; mode=block
content-length:
Expand Down
Loading

0 comments on commit 38eef71

Please sign in to comment.