Skip to content

Commit

Permalink
Update test assets
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Nov 5, 2024
1 parent 8e581d9 commit 7fa5770
Show file tree
Hide file tree
Showing 22 changed files with 13,266 additions and 9,075 deletions.
87 changes: 42 additions & 45 deletions tests/fixtures/finbif_cache_db_timeout.yml

Large diffs are not rendered by default.

87 changes: 42 additions & 45 deletions tests/fixtures/finbif_cache_file_timeout.yml

Large diffs are not rendered by default.

87 changes: 42 additions & 45 deletions tests/fixtures/finbif_cache_timeout.yml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions tests/fixtures/finbif_check_taxa.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
http_interactions:
- request:
method: get
uri: https://apitest.laji.fi/v0/taxa/search?query=Cygnus%20cygnus&matchType=exact&limit=1&access_token=<finbif_token>
uri: https://api.laji.fi/v0/taxa/search?query=Cygnus%20cygnus&matchType=exact&limit=1&access_token=<finbif_token>
body:
encoding: ''
string: ''
Expand All @@ -15,17 +15,17 @@ http_interactions:
reason: OK
message: 'Success: (200) OK'
headers:
date: Mon, 19 Aug 2024 10:27:12 GMT
date: Tue, 05 Nov 2024 08:35:36 GMT
content-type: application/json; charset=utf-8
content-length: '536'
x-powered-by: Express
access-control-allow-origin: '*'
access-control-allow-credentials: 'true'
x-frame-options: SAMEORIGIN
x-download-options: noopen
etag: W/"218-Ajk/sdrLZoWReAt0psVxcolKqe0"
etag: W/"218-jMx+f4qOIEwAjuWdeV6tEIBIAIM"
vary: Accept-Encoding
cache-control: public
x-frame-options: DENY
x-xss-protection: 1;mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=31536000;includeSubDomains;preload
Expand All @@ -34,13 +34,13 @@ http_interactions:
encoding: ''
file: no
string: '[{"matchingName":"Cygnus cygnus","nameType":"MX.scientificName","id":"MX.26280","scientificName":"Cygnus
cygnus","scientificNameAuthorship":"(Linnaeus, 1758)","taxonRank":"MX.species","cursiveName":true,"finnish":true,"species":true,"vernacularName":{"sv":"sångsvan","fi":"laulujoutsen","en":"Whooper
Swan"},"informalGroups":[{"id":"MVL.1","name":{"en":"Birds","sv":"Fåglar","fi":"Linnut"}},{"id":"MVL.1241","name":{"fi":"Vesilinnut","en":"Waterbirds","sv":"Vattenfåglar"}}],"kingdomScientificName":"Animalia","type":"exactMatches"}]'
recorded_at: 2024-08-19 10:27:12 GMT
cygnus","scientificNameAuthorship":"(Linnaeus, 1758)","taxonRank":"MX.species","cursiveName":true,"finnish":true,"species":true,"vernacularName":{"fi":"laulujoutsen","en":"Whooper
Swan","sv":"sångsvan"},"informalGroups":[{"id":"MVL.1","name":{"en":"Birds","sv":"Fåglar","fi":"Linnut"}},{"id":"MVL.1241","name":{"en":"Waterbirds","fi":"Vesilinnut","sv":"Vattenfåglar"}}],"kingdomScientificName":"Animalia","type":"exactMatches"}]'
recorded_at: 2024-11-05 08:35:37 GMT
recorded_with: vcr/1.6.0, webmockr/1.0.0
- request:
method: get
uri: https://apitest.laji.fi/v0/taxa/search?query=not_a_taxa&matchType=exact&limit=1&access_token=<finbif_token>
uri: https://api.laji.fi/v0/taxa/search?query=not_a_taxa&matchType=exact&limit=1&access_token=<finbif_token>
body:
encoding: ''
string: ''
Expand All @@ -54,17 +54,17 @@ http_interactions:
reason: OK
message: 'Success: (200) OK'
headers:
date: Mon, 19 Aug 2024 10:27:12 GMT
date: Tue, 05 Nov 2024 08:35:37 GMT
content-type: application/json; charset=utf-8
content-length: '2'
x-powered-by: Express
access-control-allow-origin: '*'
access-control-allow-credentials: 'true'
x-frame-options: SAMEORIGIN
x-download-options: noopen
etag: W/"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w"
vary: Accept-Encoding
cache-control: public
x-frame-options: DENY
x-xss-protection: 1;mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=31536000;includeSubDomains;preload
Expand All @@ -73,5 +73,5 @@ http_interactions:
encoding: ''
file: no
string: '[]'
recorded_at: 2024-08-19 10:27:12 GMT
recorded_at: 2024-11-05 08:35:37 GMT
recorded_with: vcr/1.6.0, webmockr/1.0.0
9,549 changes: 5,820 additions & 3,729 deletions tests/fixtures/finbif_collections.yml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/fixtures/finbif_informal_groups.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
http_interactions:
- request:
method: get
uri: https://apitest.laji.fi/v0/informal-taxon-groups/tree?pageSize=1000&lang=en&access_token=<finbif_token>
uri: https://api.laji.fi/v0/informal-taxon-groups/tree?pageSize=1000&lang=en&access_token=<finbif_token>
body:
encoding: ''
string: ''
Expand All @@ -15,18 +15,18 @@ http_interactions:
reason: OK
message: 'Success: (200) OK'
headers:
date: Mon, 19 Aug 2024 10:27:16 GMT
date: Tue, 05 Nov 2024 08:35:39 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
x-powered-by: Express
access-control-allow-origin: '*'
access-control-allow-credentials: 'true'
x-frame-options: SAMEORIGIN
x-download-options: noopen
etag: W/"1b96-9+77+KSySUsINRdyGVv9L3SO2Y4"
vary: Accept-Encoding
content-encoding: gzip
cache-control: public
x-frame-options: DENY
x-xss-protection: 1;mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=31536000;includeSubDomains;preload
Expand Down Expand Up @@ -83,5 +83,5 @@ http_interactions:
oligochaetes"},{"id":"MVL.501","name":"Leeches"},{"id":"MVL.502","name":"Polychaetes"}],"name":"Annelids"},{"id":"MVL.962","hasSubGroup":[{"id":"MVL.621","name":"Monogeneans"},{"id":"MVL.961","name":"Tapeworms"}],"name":"Parasitic
worms"},{"id":"MVL.401","name":"Priapulid worms"},{"id":"MVL.402","name":"Ribbon
worms"},{"id":"MVL.601","name":"Turbellarians"}],"name":"Worms"}],"lastPage":1,"@context":"http://schema.laji.fi/context/informalTaxonGroup-en.jsonld"}'
recorded_at: 2024-08-19 10:27:16 GMT
recorded_at: 2024-11-05 08:35:39 GMT
recorded_with: vcr/1.6.0, webmockr/1.0.0
11 changes: 5 additions & 6 deletions tests/fixtures/finbif_last_mod1.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
http_interactions:
- request:
method: get
uri: https://apitest.laji.fi/v0/warehouse/query/unit/list?selected=unit.unitId%2Cdocument.loadDate&orderBy=document.loadDate%20DESC&page=1&pageSize=1&access_token=<finbif_token>
uri: https://api.laji.fi/v0/warehouse/query/unit/list?selected=unit.unitId%2Cdocument.loadDate&orderBy=document.loadDate%20DESC&page=1&pageSize=1&access_token=<finbif_token>
body:
encoding: ''
string: ''
Expand All @@ -15,20 +15,19 @@ http_interactions:
reason: OK
message: 'Success: (200) OK'
headers:
date: Mon, 19 Aug 2024 10:28:03 GMT
date: Tue, 05 Nov 2024 08:38:16 GMT
content-type: application/json;charset=utf-8
transfer-encoding: chunked
access-control-allow-origin: '*'
via: 1.0 staging.laji.fi
via: 1.0 dw.laji.fi
cache-control: no-store
x-frame-options: DENY
x-xss-protection: 1;mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=31536000;includeSubDomains;preload
referrer-policy: no-referrer-when-downgrade
body:
encoding: ''
file: no
string: '{"currentPage":1,"nextPage":2,"lastPage":3243303,"pageSize":1,"total":3243303,"cacheTimestamp":1724063283,"results":[{"unit":{"unitId":"http://tun.fi/HR.64/339211/G.743867_AD"},"document":{"loadDate":"2024-08-19"}}]}'
recorded_at: 2024-08-19 10:28:03 GMT
string: '{"currentPage":1,"nextPage":2,"lastPage":52795118,"pageSize":1,"total":52795118,"cacheTimestamp":1730791677,"results":[{"unit":{"unitId":"http://id.luomus.fi/MY.4854771"},"document":{"loadDate":"2024-11-05"}}]}'
recorded_at: 2024-11-05 08:38:16 GMT
recorded_with: vcr/1.6.0, webmockr/1.0.0
11 changes: 5 additions & 6 deletions tests/fixtures/finbif_last_mod2.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
http_interactions:
- request:
method: get
uri: https://apitest.laji.fi/v0/warehouse/query/unit/list?selected=unit.unitId%2Cdocument.loadDate&orderBy=document.loadDate%20DESC&page=1&pageSize=1&access_token=<finbif_token>
uri: https://api.laji.fi/v0/warehouse/query/unit/list?selected=unit.unitId%2Cdocument.loadDate&orderBy=document.loadDate%20DESC&page=1&pageSize=1&access_token=<finbif_token>
body:
encoding: ''
string: ''
Expand All @@ -15,20 +15,19 @@ http_interactions:
reason: OK
message: 'Success: (200) OK'
headers:
date: Mon, 19 Aug 2024 10:28:03 GMT
date: Tue, 05 Nov 2024 08:38:16 GMT
content-type: application/json;charset=utf-8
transfer-encoding: chunked
access-control-allow-origin: '*'
via: 1.0 staging.laji.fi
via: 1.0 dw.laji.fi
cache-control: no-store
x-frame-options: DENY
x-xss-protection: 1;mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=31536000;includeSubDomains;preload
referrer-policy: no-referrer-when-downgrade
body:
encoding: ''
file: no
string: '{"currentPage":1,"nextPage":2,"lastPage":3243303,"pageSize":1,"total":3243303,"cacheTimestamp":1724063283,"results":[{"unit":{"unitId":"http://tun.fi/HR.64/339211/G.743867_AD"},"document":{"loadDate":"2024-08-19"}}]}'
recorded_at: 2024-08-19 10:28:03 GMT
string: '{"currentPage":1,"nextPage":2,"lastPage":52795118,"pageSize":1,"total":52795118,"cacheTimestamp":1730791677,"results":[{"unit":{"unitId":"http://id.luomus.fi/MY.4854771"},"document":{"loadDate":"2024-11-05"}}]}'
recorded_at: 2024-11-05 08:38:16 GMT
recorded_with: vcr/1.6.0, webmockr/1.0.0
11 changes: 5 additions & 6 deletions tests/fixtures/finbif_last_mod3.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
http_interactions:
- request:
method: get
uri: https://apitest.laji.fi/v0/warehouse/query/unit/list?selected=unit.unitId%2Cdocument.loadDate&orderBy=document.loadDate%20DESC&page=1&pageSize=1&access_token=<finbif_token>
uri: https://api.laji.fi/v0/warehouse/query/unit/list?selected=unit.unitId%2Cdocument.loadDate&orderBy=document.loadDate%20DESC&page=1&pageSize=1&access_token=<finbif_token>
body:
encoding: ''
string: ''
Expand All @@ -15,20 +15,19 @@ http_interactions:
reason: OK
message: 'Success: (200) OK'
headers:
date: Mon, 19 Aug 2024 10:28:03 GMT
date: Tue, 05 Nov 2024 08:38:16 GMT
content-type: application/json;charset=utf-8
transfer-encoding: chunked
access-control-allow-origin: '*'
via: 1.0 staging.laji.fi
via: 1.0 dw.laji.fi
cache-control: no-store
x-frame-options: DENY
x-xss-protection: 1;mode=block
x-content-type-options: nosniff
strict-transport-security: max-age=31536000;includeSubDomains;preload
referrer-policy: no-referrer-when-downgrade
body:
encoding: ''
file: no
string: '{"currentPage":1,"nextPage":2,"lastPage":3243303,"pageSize":1,"total":3243303,"cacheTimestamp":1724063283,"results":[{"unit":{"unitId":"http://tun.fi/HR.64/339211/G.743867_AD"},"document":{"loadDate":"2024-08-19"}}]}'
recorded_at: 2024-08-19 10:28:03 GMT
string: '{"currentPage":1,"nextPage":2,"lastPage":52795118,"pageSize":1,"total":52795118,"cacheTimestamp":1730791677,"results":[{"unit":{"unitId":"http://id.luomus.fi/MY.4854771"},"document":{"loadDate":"2024-11-05"}}]}'
recorded_at: 2024-11-05 08:38:16 GMT
recorded_with: vcr/1.6.0, webmockr/1.0.0
Loading

0 comments on commit 7fa5770

Please sign in to comment.