diff --git a/test/test_helper.rb b/test/test_helper.rb index 0ba70c7..3e2d117 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -17,6 +17,13 @@ VCR.configure do |config| config.cassette_library_dir = 'test/vcr_cassettes' config.hook_into :webmock + + config.before_record do |interaction| + header = interaction.response&.headers&.[]('Set-Cookie') + header&.each do |redacted_text| + interaction.filter!(redacted_text, '') + end + end end module ActionDispatch diff --git a/test/vcr_cassettes/barcode_39080027236626.yml b/test/vcr_cassettes/barcode_39080027236626.yml index ce4b4ee..b14e77f 100644 --- a/test/vcr_cassettes/barcode_39080027236626.yml +++ b/test/vcr_cassettes/barcode_39080027236626.yml @@ -8,7 +8,7 @@ http_interactions: string: '' headers: Accept: - - application/json + - application/xml Connection: - close Host: @@ -21,16 +21,14 @@ http_interactions: message: OK headers: X-Request-Id: - - mvImwNgE6L + - bex2voghPT P3p: - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Set-Cookie: - - JSESSIONID=4B10A757D7E9BAA8A0955C4F3DE0AB17.app04.na06.prod.alma.dc01.hosted.exlibrisgroup.com:1801; - Path=/; HttpOnly; SameSite=None; Secure - - __Secure-UqZBpD3n3naPR20-9Fvn5i-TQ-tFoshbYtbA9YCEpg3UXgo_=v1tuoKgw__f1o; Expires=Sun, - 07-Jan-2035 19:40:04 GMT; Path=/; Secure; SameSite=None - - urm_se=1736452204104; Path=/; SameSite=None; Secure - - urm_st=1736451604104; Path=/; SameSite=None; Secure + - "" + - "" + - "" + - "" Access-Control-Allow-Methods: - GET Access-Control-Allow-Headers: @@ -55,7 +53,7 @@ http_interactions: Content-Length: - '2150' Date: - - Thu, 09 Jan 2025 19:40:04 GMT + - Mon, 13 Jan 2025 18:30:12 GMT Connection: - close Strict-Transport-Security: @@ -100,8 +98,8 @@ http_interactions: true - 2025-01-09T14:40:04-0500 + 2025-01-13T13:30:12-0500 - recorded_at: Thu, 09 Jan 2025 19:40:04 GMT + recorded_at: Mon, 13 Jan 2025 18:30:12 GMT recorded_with: VCR 6.3.1 diff --git a/test/vcr_cassettes/barcode_not_found.yml b/test/vcr_cassettes/barcode_not_found.yml index 4172fc0..a2f1f94 100644 --- a/test/vcr_cassettes/barcode_not_found.yml +++ b/test/vcr_cassettes/barcode_not_found.yml @@ -8,7 +8,7 @@ http_interactions: string: '' headers: Accept: - - application/json + - application/xml Connection: - close Host: @@ -21,16 +21,14 @@ http_interactions: message: OK headers: X-Request-Id: - - 5DiPmu4VUb + - nynJnwo8lm P3p: - CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Set-Cookie: - - JSESSIONID=01FDF1A50F30A39D241E61768F0F6D53.app03.na06.prod.alma.dc01.hosted.exlibrisgroup.com:1801; - Path=/; HttpOnly; SameSite=None; Secure - - __Secure-UqZBpD3n3naPR20-9Fvn5i-TQ-tFoshbYtbA9YCEpg3UXgo_=v1SeoKgw__ob6; Expires=Sun, - 07-Jan-2035 19:31:48 GMT; Path=/; Secure; SameSite=None - - urm_se=1736451708493; Path=/; SameSite=None; Secure - - urm_st=1736451108493; Path=/; SameSite=None; Secure + - "" + - "" + - "" + - "" Access-Control-Allow-Methods: - GET Access-Control-Allow-Headers: @@ -53,7 +51,7 @@ http_interactions: Content-Length: - '420' Date: - - Thu, 09 Jan 2025 19:31:48 GMT + - Mon, 13 Jan 2025 18:30:12 GMT Connection: - close Strict-Transport-Security: @@ -67,8 +65,8 @@ http_interactions: true - 2025-01-09T14:31:48-0500 + 2025-01-13T13:30:12-0500 - recorded_at: Thu, 09 Jan 2025 19:31:48 GMT + recorded_at: Mon, 13 Jan 2025 18:30:12 GMT recorded_with: VCR 6.3.1 diff --git a/test/vcr_cassettes/pmid_37953305.yml b/test/vcr_cassettes/pmid_37953305.yml index 8729df5..a1025fc 100644 --- a/test/vcr_cassettes/pmid_37953305.yml +++ b/test/vcr_cassettes/pmid_37953305.yml @@ -14,14 +14,14 @@ http_interactions: Host: - eutils.ncbi.nlm.nih.gov User-Agent: - - http.rb/5.1.1 + - http.rb/5.2.0 response: status: code: 200 message: OK headers: Date: - - Fri, 17 Nov 2023 17:30:05 GMT + - Mon, 13 Jan 2025 19:24:52 GMT Server: - Finatra Strict-Transport-Security: @@ -31,9 +31,9 @@ http_interactions: Referrer-Policy: - origin-when-cross-origin Ncbi-Sid: - - 030462E715EBA16A_B93BSID + - A2B98ACAABE18FAF_D38FSID Ncbi-Phid: - - 322C56F00DDF264500003C3277045652.1.1.m_3 + - 939B684A59FD7FC500002E87D8885DC0.1.1.m_3 Content-Type: - text/xml; charset=UTF-8 Cache-Control: @@ -41,14 +41,13 @@ http_interactions: X-Ratelimit-Limit: - '3' X-Ratelimit-Remaining: - - '2' + - '0' Access-Control-Allow-Origin: - "*" Access-Control-Expose-Headers: - X-RateLimit-Limit,X-RateLimit-Remaining Set-Cookie: - - ncbi_sid=030462E715EBA16A_B93BSID; domain=.nih.gov; path=/; expires=Sun, 17 - Nov 2024 17:30:06 GMT + - "" Vary: - Accept-Encoding X-Ua-Compatible: @@ -63,8 +62,8 @@ http_interactions: encoding: UTF-8 string: |- - + - 3795330520231112
1476-46872023Nov09NatureNatureFlashy molecules decode a polymer's lengthening chain.10.1038/d41586-023-03497-2engNews20231109
EnglandNature04104620028-0836IMChemistry
2023111304220231113042202311122340aheadofprint3795330510.1038/d41586-023-03497-210.1038/d41586-023-03497-2Ye, R. et al. Nature Chem. https://doi.org/10.1038/s41557-023-01363-2 (2023).10.1038/s41557-023-01363-2
- recorded_at: Fri, 17 Nov 2023 17:30:06 GMT -recorded_with: VCR 6.2.0 + 379533052023112320231123
1476-468762379882023NovNatureNatureFlashy molecules decode a polymer's lengthening chain.66966910.1038/d41586-023-03497-2engNews
EnglandNature04104620028-08360Polymers0Biocompatible MaterialsIMPolymersBiocompatible MaterialsChemistry
2023112364220231113042202311122340ppublish3795330510.1038/d41586-023-03497-210.1038/d41586-023-03497-2Ye, R. et al. Nature Chem. https://doi.org/10.1038/s41557-023-01363-2 (2023).10.1038/s41557-023-01363-2
+ recorded_at: Mon, 13 Jan 2025 19:24:52 GMT +recorded_with: VCR 6.3.1 diff --git a/test/vcr_cassettes/pmid_not_found.yml b/test/vcr_cassettes/pmid_not_found.yml index 4365777..818f290 100644 --- a/test/vcr_cassettes/pmid_not_found.yml +++ b/test/vcr_cassettes/pmid_not_found.yml @@ -14,14 +14,14 @@ http_interactions: Host: - eutils.ncbi.nlm.nih.gov User-Agent: - - http.rb/5.1.1 + - http.rb/5.2.0 response: status: code: 400 message: Bad Request headers: Date: - - Fri, 17 Nov 2023 17:34:04 GMT + - Mon, 13 Jan 2025 19:24:52 GMT Server: - Finatra Strict-Transport-Security: @@ -31,9 +31,9 @@ http_interactions: Referrer-Policy: - origin-when-cross-origin Ncbi-Sid: - - 4F4503D287162994_A463SID + - 5C5E43AB2F93C3B9_CE6BSID Ncbi-Phid: - - D0BD49FBABD19BD500004D63451EE40A.1.1.m_1 + - D0BD4066E0FF8E75000052A51BC97A5E.1.1.m_1 Content-Type: - text/xml; charset=UTF-8 Cache-Control: @@ -47,8 +47,7 @@ http_interactions: Access-Control-Expose-Headers: - X-RateLimit-Limit,X-RateLimit-Remaining Set-Cookie: - - ncbi_sid=4F4503D287162994_A463SID; domain=.nih.gov; path=/; expires=Sun, 17 - Nov 2024 17:34:04 GMT + - "" Vary: - Accept-Encoding X-Ua-Compatible: @@ -64,5 +63,5 @@ http_interactions: string: "\n\n\n\tID list is empty! Possibly it has no correct IDs.\n\n" - recorded_at: Fri, 17 Nov 2023 17:34:04 GMT -recorded_with: VCR 6.2.0 + recorded_at: Mon, 13 Jan 2025 19:24:52 GMT +recorded_with: VCR 6.3.1