-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): clear the validator before each test (#1242)
- Loading branch information
Showing
289 changed files
with
92,320 additions
and
988 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
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
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
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
157 changes: 157 additions & 0 deletions
157
tests/cassettes/test_catalog/TestCatalog.test_validate_all[cat1].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,157 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Connection: | ||
- close | ||
Host: | ||
- stac-extensions.github.io | ||
User-Agent: | ||
- Python-urllib/3.11 | ||
method: GET | ||
uri: https://stac-extensions.github.io/label/v1.0.1/schema.json | ||
response: | ||
body: | ||
string: "{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": | ||
\"https://stac-extensions.github.io/label/v1.0.1/schema.json#\",\n \"title\": | ||
\"Label Extension\",\n \"description\": \"STAC Label Extension for STAC Items | ||
and STAC Collections.\",\n \"oneOf\": [\n {\n \"$comment\": \"This | ||
is the schema for STAC Items.\",\n \"allOf\": [\n {\n \"type\": | ||
\"object\",\n \"required\": [\n \"type\",\n \"properties\",\n | ||
\ \"links\",\n \"assets\"\n ],\n \"properties\": | ||
{\n \"type\": {\n \"const\": \"Feature\"\n },\n | ||
\ \"properties\": {\n \"allOf\": [\n {\n | ||
\ \"$comment\": \"Require fields here for item properties.\",\n | ||
\ \"required\": [\n \"label:properties\",\n | ||
\ \"label:description\",\n \"label:type\"\n | ||
\ ]\n },\n {\n \"$ref\": | ||
\"#/definitions/fields\"\n }\n ]\n },\n | ||
\ \"links\": {\n \"type\": \"array\",\n \"items\": | ||
{\n \"$ref\": \"#/definitions/link_fields\"\n }\n | ||
\ },\n \"assets\": {\n \"type\": \"object\",\n | ||
\ \"additionalProperties\": {\n \"$ref\": \"#/definitions/fields\"\n | ||
\ }\n }\n }\n },\n {\n \"$ref\": | ||
\"#/definitions/stac_extensions\"\n }\n ]\n },\n {\n \"$comment\": | ||
\"This is the schema for STAC Collections.\",\n \"allOf\": [\n {\n | ||
\ \"type\": \"object\",\n \"required\": [\n \"type\"\n | ||
\ ],\n \"properties\": {\n \"type\": {\n \"const\": | ||
\"Collection\"\n },\n \"assets\": {\n \"type\": | ||
\"object\",\n \"additionalProperties\": {\n \"$ref\": | ||
\"#/definitions/fields\"\n }\n },\n \"item_assets\": | ||
{\n \"type\": \"object\",\n \"additionalProperties\": | ||
{\n \"$ref\": \"#/definitions/fields\"\n }\n }\n | ||
\ }\n },\n {\n \"$ref\": \"#/definitions/stac_extensions\"\n | ||
\ }\n ]\n }\n ],\n \"definitions\": {\n \"stac_extensions\": | ||
{\n \"type\": \"object\",\n \"required\": [\n \"stac_extensions\"\n | ||
\ ],\n \"properties\": {\n \"stac_extensions\": {\n \"type\": | ||
\"array\",\n \"contains\": {\n \"const\": \"https://stac-extensions.github.io/label/v1.0.1/schema.json\"\n | ||
\ }\n }\n }\n },\n \"link_fields\": {\n \"type\": | ||
\"object\",\n \"properties\": {\n \"label:assets\": {\n \"type\": | ||
\"array\",\n \"items\": {\n \"type\": \"string\"\n }\n | ||
\ }\n },\n \"patternProperties\": {\n \"^(?!label:)\": | ||
{}\n },\n \"additionalProperties\": false\n },\n \"fields\": | ||
{\n \"type\": \"object\",\n \"properties\": {\n \"label:properties\": | ||
{\n \"title\": \"Property\",\n \"oneOf\": [\n {\n | ||
\ \"type\": \"array\",\n \"minItems\": 1,\n \"items\": | ||
{\n \"type\": \"string\"\n }\n },\n | ||
\ {\n \"type\": \"null\"\n }\n ]\n | ||
\ },\n \"label:classes\": {\n \"title\": \"Classes\",\n | ||
\ \"type\": \"array\",\n \"items\": {\n \"type\": | ||
\"object\",\n \"required\": [\n \"name\",\n \"classes\"\n | ||
\ ],\n \"properties\": {\n \"name\": {\n | ||
\ \"title\": \"Name\"\n },\n \"classes\": | ||
{\n \"title\": \"Classes\",\n \"oneOf\": [\n | ||
\ {\n \"type\": \"array\",\n \"items\": | ||
{\n \"type\": \"string\"\n }\n },\n | ||
\ {\n \"type\": \"array\",\n \"items\": | ||
{\n \"type\": \"number\"\n }\n }\n | ||
\ ]\n }\n }\n }\n },\n | ||
\ \"label:description\": {\n \"title\": \"Description\",\n | ||
\ \"type\": \"string\",\n \"minLength\": 1\n },\n | ||
\ \"label:type\": {\n \"title\": \"Type\",\n \"type\": | ||
\"string\",\n \"enum\": [\n \"raster\",\n \"vector\"\n | ||
\ ]\n },\n \"label:tasks\": {\n \"title\": | ||
\"Task\",\n \"type\": \"array\",\n \"items\": {\n \"type\": | ||
\"string\"\n }\n },\n \"label:methods\": {\n \"title\": | ||
\"Method\",\n \"type\": \"array\",\n \"items\": {\n \"type\": | ||
\"string\"\n }\n },\n \"label:overviews\": {\n \"title\": | ||
\"Overview\",\n \"type\": \"array\",\n \"items\": {\n \"type\": | ||
\"object\",\n \"properties\": {\n \"property_key\": | ||
{\n \"title\": \"Property Key\",\n \"type\": | ||
\"string\"\n },\n \"counts\": {\n \"title\": | ||
\"Counts\",\n \"type\": \"array\",\n \"items\": | ||
{\n \"type\": \"object\",\n \"properties\": | ||
{\n \"name\": {\n \"title\": \"Class | ||
Name\",\n \"type\": \"string\"\n },\n | ||
\ \"count\": {\n \"title\": \"Count\",\n | ||
\ \"type\": \"integer\"\n }\n }\n | ||
\ }\n },\n \"statistics\": {\n \"title\": | ||
\"Statistics\",\n \"type\": \"array\",\n \"items\": | ||
{\n \"type\": \"object\",\n \"properties\": | ||
{\n \"name\": {\n \"title\": \"Stat | ||
Name\",\n \"type\": \"string\"\n },\n | ||
\ \"value\": {\n \"title\": \"Value\",\n | ||
\ \"type\": \"number\"\n }\n }\n | ||
\ }\n }\n }\n }\n }\n | ||
\ },\n \"if\": {\n \"properties\": {\n \"label:type\": | ||
{\n \"const\": \"raster\"\n }\n }\n },\n \"then\": | ||
{\n \"properties\": {\n \"label:classes\": {\n \"items\": | ||
{\n \"properties\": {\n \"name\": {\n \"type\": | ||
\"null\"\n }\n }\n }\n }\n | ||
\ }\n },\n \"else\": {\n \"properties\": {\n \"label:classes\": | ||
{\n \"items\": {\n \"properties\": {\n \"name\": | ||
{\n \"type\": \"string\",\n \"minLength\": | ||
1\n }\n }\n }\n }\n }\n | ||
\ },\n \"patternProperties\": {\n \"^(?!label:)\": {}\n },\n | ||
\ \"additionalProperties\": false\n }\n }\n}" | ||
headers: | ||
Accept-Ranges: | ||
- bytes | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Age: | ||
- '497' | ||
Cache-Control: | ||
- max-age=600 | ||
Connection: | ||
- close | ||
Content-Length: | ||
- '6847' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Date: | ||
- Wed, 27 Sep 2023 21:19:57 GMT | ||
ETag: | ||
- '"61eb1dc9-1abf"' | ||
Last-Modified: | ||
- Fri, 21 Jan 2022 20:55:37 GMT | ||
Server: | ||
- GitHub.com | ||
Strict-Transport-Security: | ||
- max-age=31556952 | ||
Vary: | ||
- Accept-Encoding | ||
Via: | ||
- 1.1 varnish | ||
X-Cache: | ||
- HIT | ||
X-Cache-Hits: | ||
- '1' | ||
X-Fastly-Request-ID: | ||
- 8e0c7f08fe1dee62273884e215cc2f9033ee7dd2 | ||
X-GitHub-Request-Id: | ||
- 821C:0FF5:2D086F:420327:6514696C | ||
X-Served-By: | ||
- cache-lga21932-LGA | ||
X-Timer: | ||
- S1695849598.593243,VS0,VE1 | ||
expires: | ||
- Wed, 27 Sep 2023 17:52:04 GMT | ||
permissions-policy: | ||
- interest-cohort=() | ||
x-proxy-cache: | ||
- MISS | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.