Skip to content

Commit

Permalink
removing some test for occ_count
Browse files Browse the repository at this point in the history
  • Loading branch information
John Waller committed Mar 9, 2023
1 parent 7f5a1a1 commit 6d81d84
Show file tree
Hide file tree
Showing 4 changed files with 408 additions and 28 deletions.
145 changes: 145 additions & 0 deletions tests/fixtures/occ_count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
http_interactions:
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facetLimit=
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjI4NDgyMDU2
NiwicmVzdWx0cyI6W10sImZhY2V0cyI6W119
recorded_at: 2023-03-09 14:40:20 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facetLimit=&year=2000%2C2011&taxonKey=212
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjIyODMzOTM4
LCJyZXN1bHRzIjpbXSwiZmFjZXRzIjpbXX0=
recorded_at: 2023-03-09 14:40:20 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facetLimit=&year=2012
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6Njc4ODY4MjMs
InJlc3VsdHMiOltdLCJmYWNldHMiOltdfQ==
recorded_at: 2023-03-09 14:40:20 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=ABSENT&limit=0&offset=0&facetLimit=
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjkwMTc3MTcs
InJlc3VsdHMiOltdLCJmYWNldHMiOltdfQ==
recorded_at: 2023-03-09 14:40:20 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facetLimit=&organismQuantity=5&basisOfRecord=MATERIAL_SAMPLE
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6OTQxNTM5LCJy
ZXN1bHRzIjpbXSwiZmFjZXRzIjpbXX0=
recorded_at: 2023-03-09 14:40:20 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facetLimit=&verbatimScientificName=Calopteryx%20splendens&verbatimScientificName=Calopteryx%20virgo
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjY1OTA1LCJy
ZXN1bHRzIjpbXSwiZmFjZXRzIjpbXX0=
recorded_at: 2023-03-09 14:40:20 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
166 changes: 166 additions & 0 deletions tests/fixtures/occ_count_facet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
http_interactions:
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?limit=0&offset=0&facet=year&facetLimit=
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjMxMzgzODI4
MywicmVzdWx0cyI6W10sImZhY2V0cyI6W3siZmllbGQiOiJZRUFSIiwiY291bnRzIjpbeyJuYW1lIjoi
MjAyMSIsImNvdW50IjoyMzEyNDU3Njl9LHsibmFtZSI6IjIwMjAiLCJjb3VudCI6MjA3MDg0NTAwfSx7
Im5hbWUiOiIyMDE5IiwiY291bnQiOjE3MjkxMjM3OX0seyJuYW1lIjoiMjAxOCIsImNvdW50IjoxNTUw
MjI0MzJ9LHsibmFtZSI6IjIwMTciLCJjb3VudCI6MTMwODAzNTQ3fSx7Im5hbWUiOiIyMDE2IiwiY291
bnQiOjExNjM3ODY4NH0seyJuYW1lIjoiMjAxNSIsImNvdW50IjoxMDI1NTEyNTl9LHsibmFtZSI6IjIw
MTQiLCJjb3VudCI6OTIxNzYwMDV9LHsibmFtZSI6IjIwMTMiLCJjb3VudCI6Nzc4MTk1ODZ9LHsibmFt
ZSI6IjIwMTIiLCJjb3VudCI6NjkzMjQzNzF9XX1dfQ==
recorded_at: 2023-03-09 14:40:22 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facet=year&facetLimit=&year=2000%2C2003&taxonKey=212
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6Mzg3MDU3NDks
InJlc3VsdHMiOltdLCJmYWNldHMiOlt7ImZpZWxkIjoiWUVBUiIsImNvdW50cyI6W3sibmFtZSI6IjIw
MDMiLCJjb3VudCI6MTA3ODQ1ODl9LHsibmFtZSI6IjIwMDIiLCJjb3VudCI6OTU3ODk5OX0seyJuYW1l
IjoiMjAwMSIsImNvdW50Ijo5NDAwMzg3fSx7Im5hbWUiOiIyMDAwIiwiY291bnQiOjg5NDE3NzR9XX1d
fQ==
recorded_at: 2023-03-09 14:40:22 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facet=country&facetLimit=2
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjI4NDgyMDU2
NiwicmVzdWx0cyI6W10sImZhY2V0cyI6W3siZmllbGQiOiJDT1VOVFJZIiwiY291bnRzIjpbeyJuYW1l
IjoiVVMiLCJjb3VudCI6ODEwNjI5MjQyfSx7Im5hbWUiOiJGUiIsImNvdW50IjoxMzkyMzQyNzl9XX1d
fQ==
recorded_at: 2023-03-09 14:40:22 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?limit=0&offset=0&facet=occurrenceStatus&facetLimit=
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjMxMzgzODI4
MywicmVzdWx0cyI6W10sImZhY2V0cyI6W3siZmllbGQiOiJPQ0NVUlJFTkNFX1NUQVRVUyIsImNvdW50
cyI6W3sibmFtZSI6IlBSRVNFTlQiLCJjb3VudCI6MjI4NDgyMDU2Nn0seyJuYW1lIjoiQUJTRU5UIiwi
Y291bnQiOjI5MDE3NzE3fV19XX0=
recorded_at: 2023-03-09 14:40:22 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facet=basisOfRecord&facetLimit=&organismQuantity=5&basisOfRecord=MATERIAL_SAMPLE
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6OTQxNTM5LCJy
ZXN1bHRzIjpbXSwiZmFjZXRzIjpbeyJmaWVsZCI6IkJBU0lTX09GX1JFQ09SRCIsImNvdW50cyI6W3si
bmFtZSI6Ik1BVEVSSUFMX1NBTVBMRSIsImNvdW50Ijo5NDE1Mzl9XX1dfQ==
recorded_at: 2023-03-09 14:40:22 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
- request:
method: get
uri: https://api.gbif.org/v1/occurrence/search?occurrenceStatus=PRESENT&limit=0&offset=0&facet=coordinateUncertaintyInMeters&facetLimit=
body:
encoding: ''
string: ''
headers:
Accept-Encoding: gzip, deflate
Accept: application/json, text/xml, application/xml, */*
response:
status:
status_code: '200'
message: OK
explanation: Request fulfilled, document follows
headers:
status: HTTP/1.1 200 OK
content-type: application/json
body:
encoding: ''
file: no
base64_string: eyJvZmZzZXQiOjAsImxpbWl0IjowLCJlbmRPZlJlY29yZHMiOmZhbHNlLCJjb3VudCI6MjI4NDgyMDU2
NiwicmVzdWx0cyI6W10sImZhY2V0cyI6W3siZmllbGQiOiJDT09SRElOQVRFX1VOQ0VSVEFJTlRZX0lO
X01FVEVSUyIsImNvdW50cyI6W3sibmFtZSI6IjUwMDAuMCIsImNvdW50IjoxMDg3OTE2MzZ9LHsibmFt
ZSI6IjEwMC4wIiwiY291bnQiOjQ3OTE4MDU4fSx7Im5hbWUiOiIxMDAwLjAiLCJjb3VudCI6MzE3MjA5
MTZ9LHsibmFtZSI6IjEwLjAiLCJjb3VudCI6Mjc0MDUzNjZ9LHsibmFtZSI6IjUwMC4wIiwiY291bnQi
OjIxNzQzOTM1fSx7Im5hbWUiOiI3MDcuMSIsImNvdW50IjoyMTA1NDM3OX0seyJuYW1lIjoiMTQxNC4y
IiwiY291bnQiOjIwOTIzMjM2fSx7Im5hbWUiOiIxMDAwMC4wIiwiY291bnQiOjIwMzUxOTkxfSx7Im5h
bWUiOiI3MC43IiwiY291bnQiOjE4Mzk3MzE1fSx7Im5hbWUiOiI3MDcxLjEiLCJjb3VudCI6MTcxNDM4
NDJ9XX1dfQ==
recorded_at: 2023-03-09 14:40:22 GMT
recorded_with: vcr/1.2.0, webmockr/0.8.2
Loading

0 comments on commit 6d81d84

Please sign in to comment.