Skip to content

Commit

Permalink
Merge pull request #931 from ocefpaf/record_network_interactions
Browse files Browse the repository at this point in the history
mark ERDDAP test with vcr
  • Loading branch information
benjwadams authored May 25, 2022
2 parents 339132d + 23e2c1a commit 54f7644
Show file tree
Hide file tree
Showing 5 changed files with 553 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Integration Tests
on:
pull_request:
push:
branches: [master]
branches: [master,develop,main]

jobs:
run:
Expand Down Expand Up @@ -36,4 +36,4 @@ jobs:
shell: bash -l {0}
run: |
source activate TEST
pytest -m "integration" -s -rxs -v compliance_checker
pytest -m "integration" -s -rxs -v --vcr-record=none compliance_checker
238 changes: 238 additions & 0 deletions compliance_checker/tests/cassettes/test_erddap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.27.1
method: HEAD
uri: https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom
response:
body:
string: ''
headers:
Connection:
- close
Content-Type:
- text/plain; charset=UTF-8
Date:
- Tue, 24 May 2022 11:35:37 GMT
Last-Modified:
- Tue, 24 May 2022 11:35:37 GMT
Location:
- https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom.html
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
Transfer-Encoding:
- chunked
erddap-server:
- '2.18'
xdods-server:
- dods/3.7
status:
code: 302
message: ''
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.27.1
method: HEAD
uri: https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom.html
response:
body:
string: ''
headers:
Connection:
- close
Content-Encoding:
- gzip
Content-Type:
- text/html;charset=UTF-8
Date:
- Tue, 24 May 2022 11:35:48 GMT
Last-Modified:
- Tue, 24 May 2022 11:35:48 GMT
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
Transfer-Encoding:
- chunked
erddap-server:
- '2.18'
xdods-server:
- dods/3.7
status:
code: 200
message: ''
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.27.1
method: HEAD
uri: https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom
response:
body:
string: ''
headers:
Connection:
- close
Content-Type:
- text/plain; charset=UTF-8
Date:
- Tue, 24 May 2022 11:35:59 GMT
Last-Modified:
- Tue, 24 May 2022 11:35:59 GMT
Location:
- https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom.html
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
Transfer-Encoding:
- chunked
erddap-server:
- '2.18'
xdods-server:
- dods/3.7
status:
code: 302
message: ''
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.27.1
method: HEAD
uri: https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom.html
response:
body:
string: ''
headers:
Connection:
- close
Content-Encoding:
- gzip
Content-Type:
- text/html;charset=UTF-8
Date:
- Tue, 24 May 2022 11:36:10 GMT
Last-Modified:
- Tue, 24 May 2022 11:36:10 GMT
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
Transfer-Encoding:
- chunked
erddap-server:
- '2.18'
xdods-server:
- dods/3.7
status:
code: 200
message: ''
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.27.1
method: GET
uri: https://coastwatch.pfeg.noaa.gov/erddap/griddap/osuChlaAnom.das
response:
body:
string: !!binary |
H4sIAAAAAAAAAMVY227bSBJ991cU/JRgKOriWyYBFquRldiBYxuWvJnJC9EiW2RjSLamuylbWOTf
91STkiyZ9mQ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fMfssEkBnY9v78aj4XR8vjfqsPDzryvr7wzfD74f/AdvBHMrTxkAAA==
headers:
Connection:
- close
Content-Description:
- dods-das
Content-Encoding:
- gzip
Content-Type:
- text/plain;charset=ISO-8859-1
Date:
- Tue, 24 May 2022 11:38:22 GMT
Last-Modified:
- Tue, 24 May 2022 11:38:22 GMT
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
Transfer-Encoding:
- chunked
erddap-server:
- '2.18'
xdods-server:
- dods/3.7
status:
code: 200
message: ''
version: 1
Loading

0 comments on commit 54f7644

Please sign in to comment.