From c52c1f9985f7b21dde2980e7a140863023abbd30 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 23 Oct 2020 23:17:05 +0200 Subject: [PATCH] fix url registration in handle system. #666 --- app/models/doi.rb | 10 +-- .../fixtures/files/datacite-user-example.json | 6 +- .../dois/DOI/get-url/it_works/returns_url.yml | 4 +- .../DOI/get-url/no_password/returns_url.yml | 6 +- .../get-url/not_found/returns_not_found.yml | 4 +- .../GET_/dois/get-dois/returns_all_dois.yml | 8 +-- .../includes_events.yml | 57 --------------- .../lupo/issues/84/returns_no_errors.yml | 4 +- .../_id/update_formats/updates_the_doi.yml} | 6 +- .../dois/_id/update_sizes/updates_the_doi.yml | 36 ++++++++++ .../creates_the_record.yml | 8 +-- .../revert_the_changes.yml | 8 +-- .../updates_the_record.yml | 4 +- .../updates_the_record.yml | 4 +- .../updates_the_record.yml | 4 +- .../creates_the_record.yml | 8 +-- .../lupo/issues/89/returns_no_errors.yml | 36 ++++++++++ .../updates_the_record.yml | 4 +- .../updates_the_record.yml | 4 +- .../revert_the_changes.yml | 4 +- .../updates_the_record.yml | 4 +- .../updates_the_record.yml | 36 ++++++++++ .../updates_the_client_id.yml | 36 ++++++++++ .../dois/datacite_url/updates_the_record.yml | 32 ++++----- .../POST_/dois/json/created_the_record.yml | 8 +-- .../POST_/dois/landing_page/creates_a_doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../POST_/dois/mds_doi/add_metadata.yml | 8 +-- .../updates_the_Doi.yml | 36 ++++++++++ .../updates_the_Doi.yml | 69 +++++++++++++++++++ .../dois/schema_org/updates_the_record.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_doi.yml | 36 ++++++++++ .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 12 ++-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../when_the_title_changes/creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../creates_a_Doi.yml | 8 +-- .../state/hide/updates_the_record.yml | 36 ++++++++++ .../hide_with_reason/updates_the_record.yml | 36 ++++++++++ .../state/publish/updates_the_record.yml | 8 +-- .../state/register/creates_the_record.yml | 8 +-- spec/requests/datacite_dois_spec.rb | 17 ++--- 51 files changed, 518 insertions(+), 217 deletions(-) delete mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois_with_views_and_downloads/includes_events.yml rename spec/fixtures/vcr_cassettes/DataciteDoisController/{POST_/dois/creators_no_xml/returns_validation_error.yml => PATCH_/dois/_id/update_formats/updates_the_doi.yml} (88%) create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_sizes/updates_the_doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_exists_https_/github_com/datacite/lupo/issues/89/returns_no_errors.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_xml_field_has_datacite_json/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_we_transfer_a_DOI_as_staff/updates_the_client_id.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information/updates_the_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information_via_xml/updates_the_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_with_landing_page_info_as_admin/creates_a_doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide_with_reason/updates_the_record.yml diff --git a/app/models/doi.rb b/app/models/doi.rb index c23628c87..8fe85fd74 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -106,7 +106,7 @@ class Doi < ActiveRecord::Base validates_inclusion_of :agency, :in => %w(datacite crossref kisti medra istic jalc airiti cnki op), allow_blank: true validates :last_landing_page_status, numericality: { only_integer: true }, if: :last_landing_page_status? validates :xml, presence: true, xml_schema: true, if: Proc.new { |doi| doi.validatable? } - validate :check_url, if: :url? + validate :check_url, if: Proc.new { |doi| doi.is_registered_or_findable? } validate :check_dates, if: :dates? validate :check_rights_list, if: :rights_list? validate :check_titles, if: :titles? @@ -1774,7 +1774,9 @@ def update_url if %w(europ).include?(provider_id) || type == "OtherDoi" UrlJob.perform_later(doi) - elsif url_changed? || changes["aasm_state"] == ["draft", "findable"] || changes["aasm_state"] == ["draft", "registered"] + # TODO better define conditions for updating handle system + # elsif url_changed? || changes["aasm_state"] == ["draft", "findable"] || changes["aasm_state"] == ["draft", "registered"] + else register_url end end @@ -1838,9 +1840,7 @@ def event=(value) end def check_url - return nil if is_registered_or_findable? - - unless match_url_with_domains(url: url, domains: client.domains) + unless url.blank? || match_url_with_domains(url: url, domains: client.domains) errors.add(:url, "URL is not allowed by repository domain settings.") end end diff --git a/spec/fixtures/files/datacite-user-example.json b/spec/fixtures/files/datacite-user-example.json index 501edfda6..32bcaf699 100644 --- a/spec/fixtures/files/datacite-user-example.json +++ b/spec/fixtures/files/datacite-user-example.json @@ -4,14 +4,16 @@ "resourceTypeGeneral": "Text" }, "identifiers": [{ - "identifier":"https://doi.org/10.17918/9zwb-rb91", + "identifier": "https://doi.org/10.17918/9zwb-rb91", "identifier_type": "DOI" }], "creators": [{ "nameType": "Personal", "givenName": "Julia M.", "familyName": "Rovera", - "affiliation": ["Drexel University"], + "affiliation": [{ + "name": "Drexel University" + }], "nameIdentifiers": [{ "schemeUri": "https://orcid.org", "nameIdentifier": "", diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/it_works/returns_url.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/it_works/returns_url.yml index 1338fa5db..39ff1815b 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/it_works/returns_url.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/it_works/returns_url.yml @@ -17,7 +17,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:11:57 GMT + - Fri, 23 Oct 2020 21:11:25 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -28,5 +28,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.5438/FJ3W-0SHD","values":[{"index":1,"type":"URL","data":{"format":"string","value":"https://blog.datacite.org/data-driven-development/"},"ttl":86400,"timestamp":"2016-12-19T15:06:36Z"}]}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:11:57 GMT + recorded_at: Fri, 23 Oct 2020 21:11:25 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/no_password/returns_url.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/no_password/returns_url.yml index f78201085..220188b06 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/no_password/returns_url.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/no_password/returns_url.yml @@ -17,7 +17,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:12:08 GMT + - Fri, 23 Oct 2020 21:11:21 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -26,7 +26,7 @@ http_interactions: - Accept-Encoding body: encoding: ASCII-8BIT - string: '{"responseCode":1,"handle":"10.14454/05MB-Q396","values":[{"index":1,"type":"URL","data":{"format":"string","value":"http://stokes.info/erin"},"ttl":86400,"timestamp":"2020-10-11T20:23:26Z"}]}' + string: '{"responseCode":1,"handle":"10.14454/05MB-Q396","values":[{"index":1,"type":"URL","data":{"format":"string","value":"https://example.org"},"ttl":86400,"timestamp":"2020-10-23T20:50:11Z"}]}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:12:08 GMT + recorded_at: Fri, 23 Oct 2020 21:11:21 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_found/returns_not_found.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_found/returns_not_found.yml index cf9467855..00b5d5a80 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_found/returns_not_found.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_found/returns_not_found.yml @@ -17,7 +17,7 @@ http_interactions: message: Not Found headers: Date: - - Mon, 12 Oct 2020 05:12:02 GMT + - Fri, 23 Oct 2020 21:11:17 GMT Content-Type: - application/json;charset=UTF-8 Content-Length: @@ -28,5 +28,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":100,"handle":"10.14454/61Y1-E521"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:12:02 GMT + recorded_at: Fri, 23 Oct 2020 21:11:17 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/get-dois/returns_all_dois.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/get-dois/returns_all_dois.yml index 549967a45..abc214536 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/get-dois/returns_all_dois.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/get-dois/returns_all_dois.yml @@ -19,7 +19,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:15:41 GMT + - Fri, 23 Oct 2020 21:10:13 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -30,7 +30,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"prefix":"10.5438","totalCount":"449","handles":["10.5438/0000-00SS","10.5438/0000-01HC","10.5438/0000-03VC","10.5438/0001","10.5438/0002","10.5438/0003","10.5438/0004","10.5438/0005","10.5438/0006","10.5438/0007","10.5438/0007-NW90","10.5438/0010","10.5438/0012","10.5438/022J-CC0M","10.5438/02BH-TGC7","10.5438/045S-EC11","10.5438/08A0-3F64","10.5438/08H0-8MQY","10.5438/09C3-4V7S","10.5438/0DPB-24DR","10.5438/0DW9-MPAF","10.5438/0JGW-B795","10.5438/0MAE-2Y7~","10.5438/0Q0J-AJHF","10.5438/0QCA-V2AP","10.5438/0QS4-A3G0","10.5438/0S9T-VT1H","10.5438/0TK6-KN9=","10.5438/0V73-FK2C","10.5438/0X88-GVGE","10.5438/0XJG-XW5Q","10.5438/13J9-6GQ3","10.5438/15X1-BJ6R","10.5438/18MQ-RPGG","10.5438/1A5Y-7XSB","10.5438/1E3Q-74PQ","10.5438/1FDB-E490","10.5438/1H7N-3CEN","10.5438/1HV8-2GC2","10.5438/1J97-YVHJ","10.5438/1K45-K844","10.5438/1M14-41XZ","10.5438/1M69-A1ZK","10.5438/1MAM-DVC~","10.5438/1NX6-PQ88","10.5438/1PNA-0ZKH","10.5438/1S5T-M2D1","10.5438/1W0P-W0BC","10.5438/1XX7-7765","10.5438/1YAA-K6D1","10.5438/20G9-6WB1","10.5438/2516-KNTQ","10.5438/2629-X1J6","10.5438/26HT-FE7P","10.5438/28A6-4QV*","10.5438/28E3-DP9C","10.5438/2B73-V3YB","10.5438/2B8J-TDXH","10.5438/2G4X-Q6S9","10.5438/2R6Y-9G5Q","10.5438/2WFX-2HZ1","10.5438/2WPE-THS0","10.5438/31V8-C457","10.5438/350C-QNPD","10.5438/3604-7V9$","10.5438/36H3-CQV*","10.5438/36RH-W023","10.5438/382F-TKFV","10.5438/3CN7-V545","10.5438/3DFW-Z4KQ","10.5438/3E7A-6HK7","10.5438/3FYV-2G0V","10.5438/3J8D-X85J","10.5438/3JKB-2QP9","10.5438/3JMF-VP13","10.5438/3MTR-WGS9","10.5438/3Q29-9NWT","10.5438/3TYG-2KW7","10.5438/3X51-RC2B","10.5438/3X7Y-HBP2","10.5438/3YQ5-6N53","10.5438/408J-EAJ4","10.5438/44JK-BESG","10.5438/44VH-95FY","10.5438/455Y-9TR8","10.5438/462Q-X856","10.5438/4BY7-B7ZN","10.5438/4DCW-96B*","10.5438/4HR0-D640","10.5438/4K0Q-PB5A","10.5438/4K3M-NYVG","10.5438/4N30-NJPN","10.5438/4QX3-RP8Y","10.5438/4T5V-0PT8","10.5438/53NZ-N4G7","10.5438/54CN-P40V","10.5438/55E5-T5C0","10.5438/5653-THGW","10.5438/57SK-XD8G","10.5438/59G5-93T4","10.5438/59R2-VEEV","10.5438/5AEG-WEEV","10.5438/5B5R-B9DE","10.5438/5E2Q-NJ95","10.5438/5HZJ-5KDS","10.5438/5K96-CDVP","10.5438/5N3Y-GTDY","10.5438/5PS5-G3V~","10.5438/5SJZ-JT21","10.5438/5SQZ-H72E","10.5438/5TJ1-Z20*","10.5438/5YCZ-R519","10.5438/63PZ-PG99","10.5438/67C9-ZAZB","10.5438/68F9-B337","10.5438/6BRG-2M37","10.5438/6BRW-VEMG","10.5438/6DDP-WW08","10.5438/6GEP-3S5E","10.5438/6GG8-SDG9","10.5438/6T44-7BDJ","10.5438/6WCF-EFW5","10.5438/6XDQ-4DT0","10.5438/75RM-4VE2","10.5438/76M6-STNZ","10.5438/7705-12GY","10.5438/7780-8F8P","10.5438/78P9-FNRN","10.5438/78ZD-REDY","10.5438/7D9J-P0FP","10.5438/7MDQ-CFQJ","10.5438/7MRF-MPDK","10.5438/7RXD-S8A3","10.5438/7SSY-QVBV","10.5438/81P5-2D8H","10.5438/85SN-MX23","10.5438/85Y8-8J2Z","10.5438/879W-C2W7","10.5438/87E5-GKYY","10.5438/8AY6-WA82","10.5438/8E5N-E3Q5","10.5438/8EFW-N085","10.5438/8H16-WPEK","10.5438/8JBJ-M82P","10.5438/8QKH-1R6~","10.5438/8S99-7AWR","10.5438/8SZS-1H0H","10.5438/8TWW-0XC8","10.5438/8W5K-8W4K","10.5438/8YMV-8436","10.5438/9171-4B4F","10.5438/95DP-Q6FX","10.5438/99TJ-JZSN","10.5438/9FE4-8FNT","10.5438/9JWD-TN3A","10.5438/9QSK-2MPH","10.5438/9SNZ-VV1Y","10.5438/9Z99-A1RC","10.5438/9ZAT-8K6K","10.5438/A997-PAB1","10.5438/AB8Z-2599","10.5438/AKXG-KCQ*","10.5438/AN60-YNTY","10.5438/ANGM-ARS8","10.5438/AW9V-A6YS","10.5438/AZ3Q-C1VF","10.5438/B77P-W36R","10.5438/BAKK-ZHJN","10.5438/BBGG-0ZKW","10.5438/BC11-CQW1","10.5438/BC11-CQW6","10.5438/BC11-CQW8","10.5438/BCHH11-DDDDDD","10.5438/BDMN-SCW8","10.5438/BG66-DJN~","10.5438/BJ3H-4S1P","10.5438/BJ5V-MW65","10.5438/BMMQ-YCE9","10.5438/BNC7-JAYB","10.5438/BND2-A57V","10.5438/BNY0-AF15","10.5438/BPZZ-EAY0","10.5438/BRAINLIFE.007","10.5438/BZ8M-MBK5","10.5438/C1ZY-STZQ","10.5438/C3BY-VYZS","10.5438/C61Q-Z2K7","10.5438/C7VR-43SC","10.5438/C81T-HKVP","10.5438/CAB5-TEG0","10.5438/CAPM-3JK5","10.5438/CBS9-YE5~","10.5438/CEVP-HAVW","10.5438/CJT2-T6DZ","10.5438/CMHK-ZH44","10.5438/CRKW-AJ5D","10.5438/CT6S-F4X*","10.5438/D31R-P039","10.5438/D3FQ-BXPA","10.5438/D54Q-GW6Q","10.5438/D6PT-J5Y7","10.5438/D8E2-50Q~","10.5438/D9EQ-9DGA","10.5438/DE51-9GCW","10.5438/DJ3W-83H5","10.5438/DJ5K-XDB0","10.5438/DPJ1-Q3AZ","10.5438/DQCR-N40N","10.5438/E13Q-YPED","10.5438/E2J1-DK5A","10.5438/E5SQ-R8G1","10.5438/E66Y-3X8V","10.5438/EA4H-TX3G","10.5438/EAZK-SSE~","10.5438/ECC1-WA5S","10.5438/ECV0-QFAK","10.5438/ED4H-Y9Q0","10.5438/EJDA-7GW1","10.5438/EKBF-T33Y","10.5438/ESYS-F867","10.5438/ETEB-HG2~","10.5438/EWSV-1821","10.5438/EXAMPLE-FULL","10.5438/F17B-45VZ","10.5438/F1P0-3FK5","10.5438/F2KV-2YK3","10.5438/F36E-H22F","10.5438/FBJ5-3DWP","10.5438/FD06-ABAW","10.5438/FERW-CWHQ","10.5438/FJ3W-0SHD","10.5438/FRC3-XR1E","10.5438/G063-GKT~","10.5438/G39T-WYP1","10.5438/G3ZB-M1GS","10.5438/G59A-FBT2","10.5438/G5QG-A8SA","10.5438/G9G5-CKR7","10.5438/G9QG-M5NJ","10.5438/G9Z6-J964","10.5438/GA8V-FA94","10.5438/GFD7-6QA1","10.5438/GK1Q-HKKR","10.5438/GN8X-06M0","10.5438/GS93-BY4R","10.5438/GWSC-DADG","10.5438/GY4A-STW*","10.5438/GY9W-92W=","10.5438/GYE3-PP2A","10.5438/H0PX-5YTV","10.5438/H0WW-75T7","10.5438/H1JN-QT8$","10.5438/H40K-S4K*","10.5438/H4TY-HS9F","10.5438/H5XP-X178","10.5438/H8DR-4TTX","10.5438/HCE6-GCRP","10.5438/HFEA-PRR5","10.5438/HGHT-610$","10.5438/HGMF-XE8X","10.5438/HHE9-1G5=","10.5438/HN7K-SV5Z","10.5438/HQ54-9A6C","10.5438/J5FD-TF79","10.5438/J7K4-98WC","10.5438/J8BC-4SJW","10.5438/J8C8-C0M0","10.5438/JA0T-9W07","10.5438/JEGK-2DF0","10.5438/JG8P-DVZX","10.5438/JHTN-6890","10.5438/JKW6-K78G","10.5438/JM9F-325F","10.5438/JMED-JCAM","10.5438/JPHX-V7A0","10.5438/JQ7T-HXH8","10.5438/JWX3-KWZ4","10.5438/JZG5-VCQV","10.5438/K3W2-59D0","10.5438/KBG2-ZS5Y","10.5438/KBRV-TZAG","10.5438/KHYZ-6Z8$","10.5438/KTR7-ZJJH","10.5438/KVP3-XY0A","10.5438/KY61-VNBM","10.5438/M5K4-AMKR","10.5438/M68V-4GK6","10.5438/M8TS-BD9~","10.5438/MBW1-0GT1","10.5438/MCMF-B7EH","10.5438/MCNV-GA6N","10.5438/MDS-CLIENT-RUBY-TEST","10.5438/MK56-9XM4","10.5438/MK65-3M12","10.5438/MRR6-MF3Q","10.5438/MSK0-15R2","10.5438/MW0P-H8HQ","10.5438/N39S-B1K9","10.5438/NBXT-KY11","10.5438/NDHK-V0BX","10.5438/NDRJ-BX5K","10.5438/NG46-GVT2","10.5438/NHT3-8M8F","10.5438/NMVM-6WC6","10.5438/NNWW-3NX$","10.5438/NQCF-E0EM","10.5438/NSF1-NVKY","10.5438/NTEN-WEYS","10.5438/NZ7N-4YHF","10.5438/NZEX-EY30","10.5438/P1X8-NPY$","10.5438/P3BH-TBB~","10.5438/P59X-916F","10.5438/PE54-ZJ5T","10.5438/PQXM-76GQ","10.5438/PRF0-NRXQ","10.5438/PRXJ-7PZ6","10.5438/PVBB-BTPB","10.5438/Q019-6VE4","10.5438/Q10P-C66K","10.5438/Q2GH-6EGD","10.5438/Q36Q-82CN","10.5438/Q699-SSGR","10.5438/Q8N8-XRQZ","10.5438/QCFT-GV12","10.5438/QDMX-ECG0","10.5438/QGQ5-PGE7","10.5438/QTHF-2NGC","10.5438/QV34-E1WS","10.5438/QVW6-10XP","10.5438/QW2X-PGCY","10.5438/QYJP-1GFT","10.5438/R2ZV-P5WP","10.5438/R33F-96GH","10.5438/R438-S70*","10.5438/R4RA-8DD~","10.5438/R5AV-PTNH","10.5438/R8XY-8XK=","10.5438/R9M1-77T$","10.5438/RC4N-42YJ","10.5438/RCTN-QJCB","10.5438/RCZV-HJNS","10.5438/RDEE-P7JW","10.5438/RFJ3-C3SM","10.5438/RMT6-W97W","10.5438/RN1Z-DWRB","10.5438/RNNR-X2H~","10.5438/RPZ2-WBY6","10.5438/RQ5Q-PPEP","10.5438/RQY9-0M3B","10.5438/RTQF-7S4J","10.5438/RWAD-EB1A","10.5438/RX2V-V5WT","10.5438/RZQM-SYE2","10.5438/S20C-STGX","10.5438/S2YG-RY5K","10.5438/S7KD-S2C7","10.5438/S8GF-0CK9","10.5438/S9ZJ-ARXG","10.5438/SBTT-S36E","10.5438/SC37-K1J5","10.5438/SD03-1XBE","10.5438/SD2R-YCG9","10.5438/SDQ2-7G1Y","10.5438/SHCG-EA1F","10.5438/SHR4-2BS2","10.5438/SS2R-9CNS","10.5438/SSAF-KFTT","10.5438/SSK4-YEJ9","10.5438/SWBY-VWG~","10.5438/SYW5-VQA5","10.5438/T0AP-D5W7","10.5438/T3NT-4627","10.5438/T4JB-B450","10.5438/T964-M8SM","10.5438/TEPP-YTY6","10.5438/THY1-TC09","10.5438/TK9X-RNY9","10.5438/TNHX-54CG","10.5438/TQ4C-6C0Q","10.5438/TSJR-F9CH","10.5438/TT7V-JP55","10.5438/TW5H-21DH","10.5438/TXD3-C9ZP","10.5438/V0VG-8JJK","10.5438/V1W9-VF4H","10.5438/V2XJ-NFAP","10.5438/V683-K48X","10.5438/VAKZ-08VB","10.5438/VCC2-T9SJ","10.5438/VFJ4-8DQ$","10.5438/VHQF-PWJQ","10.5438/VKG9-X9BZ","10.5438/VQ2T-VR4K","10.5438/VQ3X-QDWT","10.5438/VTBT-NTJ8","10.5438/VZX2-KFRD","10.5438/W029-Y6W~","10.5438/W354-4XQB","10.5438/W4N7-01AT","10.5438/W8QF-4HMG","10.5438/W9H1-WE44","10.5438/WD63-6X8~","10.5438/WDYW-1K1R","10.5438/WMAS-KM0V","10.5438/WQCK-V16M","10.5438/WQX6-2DSQ","10.5438/WTJH-QHX1","10.5438/X0BB-6959","10.5438/X4JQ-EGT5","10.5438/X6WA-82RZ","10.5438/X9EG-VF27","10.5438/XCBJ-G7ZY","10.5438/XCVB-T9EW","10.5438/XDPK-WM3E","10.5438/XF8R-7VZT","10.5438/XGHB-6E1H","10.5438/XQ3J-1CMK","10.5438/XXAJ-N6H9","10.5438/XY47-C7JF","10.5438/XZH2-HG04","10.5438/Y0HC-S62S","10.5438/Y131-YX9D","10.5438/Y4KS-KSBC","10.5438/Y543-2QJX","10.5438/Y5SF-0K1T","10.5438/Y72S-E9JW","10.5438/Y81Q-R21F","10.5438/Y919-5QN4","10.5438/YAA9-F80*","10.5438/YDFF-0DNH","10.5438/YEG5-6R6Z","10.5438/YHCJ-P5HR","10.5438/YX93-ZP3M","10.5438/YYM6-6WVT","10.5438/Z2DD-TKPN","10.5438/Z2GZ-V9MF","10.5438/ZAVG-XM4R","10.5438/ZDTR-AQTT","10.5438/ZE09-RCBA","10.5438/ZF4S-5M37","10.5438/ZFPH-3MXQ","10.5438/ZH1T-Z72K","10.5438/ZMC1-V825","10.5438/ZQGA-EWE7","10.5438/ZR9Y-K3Z5","10.5438/ZSKC-6BC1","10.5438/ZWSF-4Y7Y","10.5438/ZYJN-KXX9"]}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:15:41 GMT + recorded_at: Fri, 23 Oct 2020 21:10:13 GMT - request: method: get uri: https://handle.test.datacite.org/api/handles?page=0&pageSize=1000&prefix=10.5438 @@ -50,7 +50,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:15:41 GMT + - Fri, 23 Oct 2020 21:10:13 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -61,5 +61,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"prefix":"10.5438","totalCount":"449","page":0,"pageSize":1000,"handles":["10.5438/0000-00SS","10.5438/0000-01HC","10.5438/0000-03VC","10.5438/0001","10.5438/0002","10.5438/0003","10.5438/0004","10.5438/0005","10.5438/0006","10.5438/0007","10.5438/0007-NW90","10.5438/0010","10.5438/0012","10.5438/022J-CC0M","10.5438/02BH-TGC7","10.5438/045S-EC11","10.5438/08A0-3F64","10.5438/08H0-8MQY","10.5438/09C3-4V7S","10.5438/0DPB-24DR","10.5438/0DW9-MPAF","10.5438/0JGW-B795","10.5438/0MAE-2Y7~","10.5438/0Q0J-AJHF","10.5438/0QCA-V2AP","10.5438/0QS4-A3G0","10.5438/0S9T-VT1H","10.5438/0TK6-KN9=","10.5438/0V73-FK2C","10.5438/0X88-GVGE","10.5438/0XJG-XW5Q","10.5438/13J9-6GQ3","10.5438/15X1-BJ6R","10.5438/18MQ-RPGG","10.5438/1A5Y-7XSB","10.5438/1E3Q-74PQ","10.5438/1FDB-E490","10.5438/1H7N-3CEN","10.5438/1HV8-2GC2","10.5438/1J97-YVHJ","10.5438/1K45-K844","10.5438/1M14-41XZ","10.5438/1M69-A1ZK","10.5438/1MAM-DVC~","10.5438/1NX6-PQ88","10.5438/1PNA-0ZKH","10.5438/1S5T-M2D1","10.5438/1W0P-W0BC","10.5438/1XX7-7765","10.5438/1YAA-K6D1","10.5438/20G9-6WB1","10.5438/2516-KNTQ","10.5438/2629-X1J6","10.5438/26HT-FE7P","10.5438/28A6-4QV*","10.5438/28E3-DP9C","10.5438/2B73-V3YB","10.5438/2B8J-TDXH","10.5438/2G4X-Q6S9","10.5438/2R6Y-9G5Q","10.5438/2WFX-2HZ1","10.5438/2WPE-THS0","10.5438/31V8-C457","10.5438/350C-QNPD","10.5438/3604-7V9$","10.5438/36H3-CQV*","10.5438/36RH-W023","10.5438/382F-TKFV","10.5438/3CN7-V545","10.5438/3DFW-Z4KQ","10.5438/3E7A-6HK7","10.5438/3FYV-2G0V","10.5438/3J8D-X85J","10.5438/3JKB-2QP9","10.5438/3JMF-VP13","10.5438/3MTR-WGS9","10.5438/3Q29-9NWT","10.5438/3TYG-2KW7","10.5438/3X51-RC2B","10.5438/3X7Y-HBP2","10.5438/3YQ5-6N53","10.5438/408J-EAJ4","10.5438/44JK-BESG","10.5438/44VH-95FY","10.5438/455Y-9TR8","10.5438/462Q-X856","10.5438/4BY7-B7ZN","10.5438/4DCW-96B*","10.5438/4HR0-D640","10.5438/4K0Q-PB5A","10.5438/4K3M-NYVG","10.5438/4N30-NJPN","10.5438/4QX3-RP8Y","10.5438/4T5V-0PT8","10.5438/53NZ-N4G7","10.5438/54CN-P40V","10.5438/55E5-T5C0","10.5438/5653-THGW","10.5438/57SK-XD8G","10.5438/59G5-93T4","10.5438/59R2-VEEV","10.5438/5AEG-WEEV","10.5438/5B5R-B9DE","10.5438/5E2Q-NJ95","10.5438/5HZJ-5KDS","10.5438/5K96-CDVP","10.5438/5N3Y-GTDY","10.5438/5PS5-G3V~","10.5438/5SJZ-JT21","10.5438/5SQZ-H72E","10.5438/5TJ1-Z20*","10.5438/5YCZ-R519","10.5438/63PZ-PG99","10.5438/67C9-ZAZB","10.5438/68F9-B337","10.5438/6BRG-2M37","10.5438/6BRW-VEMG","10.5438/6DDP-WW08","10.5438/6GEP-3S5E","10.5438/6GG8-SDG9","10.5438/6T44-7BDJ","10.5438/6WCF-EFW5","10.5438/6XDQ-4DT0","10.5438/75RM-4VE2","10.5438/76M6-STNZ","10.5438/7705-12GY","10.5438/7780-8F8P","10.5438/78P9-FNRN","10.5438/78ZD-REDY","10.5438/7D9J-P0FP","10.5438/7MDQ-CFQJ","10.5438/7MRF-MPDK","10.5438/7RXD-S8A3","10.5438/7SSY-QVBV","10.5438/81P5-2D8H","10.5438/85SN-MX23","10.5438/85Y8-8J2Z","10.5438/879W-C2W7","10.5438/87E5-GKYY","10.5438/8AY6-WA82","10.5438/8E5N-E3Q5","10.5438/8EFW-N085","10.5438/8H16-WPEK","10.5438/8JBJ-M82P","10.5438/8QKH-1R6~","10.5438/8S99-7AWR","10.5438/8SZS-1H0H","10.5438/8TWW-0XC8","10.5438/8W5K-8W4K","10.5438/8YMV-8436","10.5438/9171-4B4F","10.5438/95DP-Q6FX","10.5438/99TJ-JZSN","10.5438/9FE4-8FNT","10.5438/9JWD-TN3A","10.5438/9QSK-2MPH","10.5438/9SNZ-VV1Y","10.5438/9Z99-A1RC","10.5438/9ZAT-8K6K","10.5438/A997-PAB1","10.5438/AB8Z-2599","10.5438/AKXG-KCQ*","10.5438/AN60-YNTY","10.5438/ANGM-ARS8","10.5438/AW9V-A6YS","10.5438/AZ3Q-C1VF","10.5438/B77P-W36R","10.5438/BAKK-ZHJN","10.5438/BBGG-0ZKW","10.5438/BC11-CQW1","10.5438/BC11-CQW6","10.5438/BC11-CQW8","10.5438/BCHH11-DDDDDD","10.5438/BDMN-SCW8","10.5438/BG66-DJN~","10.5438/BJ3H-4S1P","10.5438/BJ5V-MW65","10.5438/BMMQ-YCE9","10.5438/BNC7-JAYB","10.5438/BND2-A57V","10.5438/BNY0-AF15","10.5438/BPZZ-EAY0","10.5438/BRAINLIFE.007","10.5438/BZ8M-MBK5","10.5438/C1ZY-STZQ","10.5438/C3BY-VYZS","10.5438/C61Q-Z2K7","10.5438/C7VR-43SC","10.5438/C81T-HKVP","10.5438/CAB5-TEG0","10.5438/CAPM-3JK5","10.5438/CBS9-YE5~","10.5438/CEVP-HAVW","10.5438/CJT2-T6DZ","10.5438/CMHK-ZH44","10.5438/CRKW-AJ5D","10.5438/CT6S-F4X*","10.5438/D31R-P039","10.5438/D3FQ-BXPA","10.5438/D54Q-GW6Q","10.5438/D6PT-J5Y7","10.5438/D8E2-50Q~","10.5438/D9EQ-9DGA","10.5438/DE51-9GCW","10.5438/DJ3W-83H5","10.5438/DJ5K-XDB0","10.5438/DPJ1-Q3AZ","10.5438/DQCR-N40N","10.5438/E13Q-YPED","10.5438/E2J1-DK5A","10.5438/E5SQ-R8G1","10.5438/E66Y-3X8V","10.5438/EA4H-TX3G","10.5438/EAZK-SSE~","10.5438/ECC1-WA5S","10.5438/ECV0-QFAK","10.5438/ED4H-Y9Q0","10.5438/EJDA-7GW1","10.5438/EKBF-T33Y","10.5438/ESYS-F867","10.5438/ETEB-HG2~","10.5438/EWSV-1821","10.5438/EXAMPLE-FULL","10.5438/F17B-45VZ","10.5438/F1P0-3FK5","10.5438/F2KV-2YK3","10.5438/F36E-H22F","10.5438/FBJ5-3DWP","10.5438/FD06-ABAW","10.5438/FERW-CWHQ","10.5438/FJ3W-0SHD","10.5438/FRC3-XR1E","10.5438/G063-GKT~","10.5438/G39T-WYP1","10.5438/G3ZB-M1GS","10.5438/G59A-FBT2","10.5438/G5QG-A8SA","10.5438/G9G5-CKR7","10.5438/G9QG-M5NJ","10.5438/G9Z6-J964","10.5438/GA8V-FA94","10.5438/GFD7-6QA1","10.5438/GK1Q-HKKR","10.5438/GN8X-06M0","10.5438/GS93-BY4R","10.5438/GWSC-DADG","10.5438/GY4A-STW*","10.5438/GY9W-92W=","10.5438/GYE3-PP2A","10.5438/H0PX-5YTV","10.5438/H0WW-75T7","10.5438/H1JN-QT8$","10.5438/H40K-S4K*","10.5438/H4TY-HS9F","10.5438/H5XP-X178","10.5438/H8DR-4TTX","10.5438/HCE6-GCRP","10.5438/HFEA-PRR5","10.5438/HGHT-610$","10.5438/HGMF-XE8X","10.5438/HHE9-1G5=","10.5438/HN7K-SV5Z","10.5438/HQ54-9A6C","10.5438/J5FD-TF79","10.5438/J7K4-98WC","10.5438/J8BC-4SJW","10.5438/J8C8-C0M0","10.5438/JA0T-9W07","10.5438/JEGK-2DF0","10.5438/JG8P-DVZX","10.5438/JHTN-6890","10.5438/JKW6-K78G","10.5438/JM9F-325F","10.5438/JMED-JCAM","10.5438/JPHX-V7A0","10.5438/JQ7T-HXH8","10.5438/JWX3-KWZ4","10.5438/JZG5-VCQV","10.5438/K3W2-59D0","10.5438/KBG2-ZS5Y","10.5438/KBRV-TZAG","10.5438/KHYZ-6Z8$","10.5438/KTR7-ZJJH","10.5438/KVP3-XY0A","10.5438/KY61-VNBM","10.5438/M5K4-AMKR","10.5438/M68V-4GK6","10.5438/M8TS-BD9~","10.5438/MBW1-0GT1","10.5438/MCMF-B7EH","10.5438/MCNV-GA6N","10.5438/MDS-CLIENT-RUBY-TEST","10.5438/MK56-9XM4","10.5438/MK65-3M12","10.5438/MRR6-MF3Q","10.5438/MSK0-15R2","10.5438/MW0P-H8HQ","10.5438/N39S-B1K9","10.5438/NBXT-KY11","10.5438/NDHK-V0BX","10.5438/NDRJ-BX5K","10.5438/NG46-GVT2","10.5438/NHT3-8M8F","10.5438/NMVM-6WC6","10.5438/NNWW-3NX$","10.5438/NQCF-E0EM","10.5438/NSF1-NVKY","10.5438/NTEN-WEYS","10.5438/NZ7N-4YHF","10.5438/NZEX-EY30","10.5438/P1X8-NPY$","10.5438/P3BH-TBB~","10.5438/P59X-916F","10.5438/PE54-ZJ5T","10.5438/PQXM-76GQ","10.5438/PRF0-NRXQ","10.5438/PRXJ-7PZ6","10.5438/PVBB-BTPB","10.5438/Q019-6VE4","10.5438/Q10P-C66K","10.5438/Q2GH-6EGD","10.5438/Q36Q-82CN","10.5438/Q699-SSGR","10.5438/Q8N8-XRQZ","10.5438/QCFT-GV12","10.5438/QDMX-ECG0","10.5438/QGQ5-PGE7","10.5438/QTHF-2NGC","10.5438/QV34-E1WS","10.5438/QVW6-10XP","10.5438/QW2X-PGCY","10.5438/QYJP-1GFT","10.5438/R2ZV-P5WP","10.5438/R33F-96GH","10.5438/R438-S70*","10.5438/R4RA-8DD~","10.5438/R5AV-PTNH","10.5438/R8XY-8XK=","10.5438/R9M1-77T$","10.5438/RC4N-42YJ","10.5438/RCTN-QJCB","10.5438/RCZV-HJNS","10.5438/RDEE-P7JW","10.5438/RFJ3-C3SM","10.5438/RMT6-W97W","10.5438/RN1Z-DWRB","10.5438/RNNR-X2H~","10.5438/RPZ2-WBY6","10.5438/RQ5Q-PPEP","10.5438/RQY9-0M3B","10.5438/RTQF-7S4J","10.5438/RWAD-EB1A","10.5438/RX2V-V5WT","10.5438/RZQM-SYE2","10.5438/S20C-STGX","10.5438/S2YG-RY5K","10.5438/S7KD-S2C7","10.5438/S8GF-0CK9","10.5438/S9ZJ-ARXG","10.5438/SBTT-S36E","10.5438/SC37-K1J5","10.5438/SD03-1XBE","10.5438/SD2R-YCG9","10.5438/SDQ2-7G1Y","10.5438/SHCG-EA1F","10.5438/SHR4-2BS2","10.5438/SS2R-9CNS","10.5438/SSAF-KFTT","10.5438/SSK4-YEJ9","10.5438/SWBY-VWG~","10.5438/SYW5-VQA5","10.5438/T0AP-D5W7","10.5438/T3NT-4627","10.5438/T4JB-B450","10.5438/T964-M8SM","10.5438/TEPP-YTY6","10.5438/THY1-TC09","10.5438/TK9X-RNY9","10.5438/TNHX-54CG","10.5438/TQ4C-6C0Q","10.5438/TSJR-F9CH","10.5438/TT7V-JP55","10.5438/TW5H-21DH","10.5438/TXD3-C9ZP","10.5438/V0VG-8JJK","10.5438/V1W9-VF4H","10.5438/V2XJ-NFAP","10.5438/V683-K48X","10.5438/VAKZ-08VB","10.5438/VCC2-T9SJ","10.5438/VFJ4-8DQ$","10.5438/VHQF-PWJQ","10.5438/VKG9-X9BZ","10.5438/VQ2T-VR4K","10.5438/VQ3X-QDWT","10.5438/VTBT-NTJ8","10.5438/VZX2-KFRD","10.5438/W029-Y6W~","10.5438/W354-4XQB","10.5438/W4N7-01AT","10.5438/W8QF-4HMG","10.5438/W9H1-WE44","10.5438/WD63-6X8~","10.5438/WDYW-1K1R","10.5438/WMAS-KM0V","10.5438/WQCK-V16M","10.5438/WQX6-2DSQ","10.5438/WTJH-QHX1","10.5438/X0BB-6959","10.5438/X4JQ-EGT5","10.5438/X6WA-82RZ","10.5438/X9EG-VF27","10.5438/XCBJ-G7ZY","10.5438/XCVB-T9EW","10.5438/XDPK-WM3E","10.5438/XF8R-7VZT","10.5438/XGHB-6E1H","10.5438/XQ3J-1CMK","10.5438/XXAJ-N6H9","10.5438/XY47-C7JF","10.5438/XZH2-HG04","10.5438/Y0HC-S62S","10.5438/Y131-YX9D","10.5438/Y4KS-KSBC","10.5438/Y543-2QJX","10.5438/Y5SF-0K1T","10.5438/Y72S-E9JW","10.5438/Y81Q-R21F","10.5438/Y919-5QN4","10.5438/YAA9-F80*","10.5438/YDFF-0DNH","10.5438/YEG5-6R6Z","10.5438/YHCJ-P5HR","10.5438/YX93-ZP3M","10.5438/YYM6-6WVT","10.5438/Z2DD-TKPN","10.5438/Z2GZ-V9MF","10.5438/ZAVG-XM4R","10.5438/ZDTR-AQTT","10.5438/ZE09-RCBA","10.5438/ZF4S-5M37","10.5438/ZFPH-3MXQ","10.5438/ZH1T-Z72K","10.5438/ZMC1-V825","10.5438/ZQGA-EWE7","10.5438/ZR9Y-K3Z5","10.5438/ZSKC-6BC1","10.5438/ZWSF-4Y7Y","10.5438/ZYJN-KXX9"]}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:15:41 GMT + recorded_at: Fri, 23 Oct 2020 21:10:13 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois_with_views_and_downloads/includes_events.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois_with_views_and_downloads/includes_events.yml deleted file mode 100644 index 4e820103c..000000000 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois_with_views_and_downloads/includes_events.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://doi.org/ra/10.14454 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) - Accept: - - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 - response: - status: - code: 200 - message: '' - headers: - Date: - - Fri, 23 Oct 2020 12:43:36 GMT - Content-Type: - - application/json;charset=UTF-8 - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d8559e224bfd5004db1259333058d89e11603457016; expires=Sun, 22-Nov-20 - 12:43:36 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - 05f71578d400000629bb1fd000000001 - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Report-To: - - '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?lkg-colo=71&lkg-time=1603457016"}],"group":"cf-nel","max_age":604800}' - Nel: - - '{"report_to":"cf-nel","max_age":604800}' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload - Server: - - cloudflare - Cf-Ray: - - 5e6b8b6e1f570629-FRA - Alt-Svc: - - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400 - body: - encoding: ASCII-8BIT - string: |- - [ - { - "DOI": "10.14454", - "RA": "DataCite" - } - ] - http_version: null - recorded_at: Fri, 23 Oct 2020 12:43:36 GMT -recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/NoMethodError_https_/github_com/datacite/lupo/issues/84/returns_no_errors.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/NoMethodError_https_/github_com/datacite/lupo/issues/84/returns_no_errors.yml index 54d43e3f2..cf206557b 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/NoMethodError_https_/github_com/datacite/lupo/issues/84/returns_no_errors.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/NoMethodError_https_/github_com/datacite/lupo/issues/84/returns_no_errors.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 06:46:15 GMT + - Fri, 23 Oct 2020 21:13:34 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 06:46:15 GMT + recorded_at: Fri, 23 Oct 2020 21:13:34 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/creators_no_xml/returns_validation_error.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_formats/updates_the_doi.yml similarity index 88% rename from spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/creators_no_xml/returns_validation_error.yml rename to spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_formats/updates_the_doi.yml index f36b8d864..d3632218f 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/creators_no_xml/returns_validation_error.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_formats/updates_the_doi.yml @@ -5,7 +5,7 @@ http_interactions: uri: https://handle.test.datacite.org/api/handles/10.14454/10703 body: encoding: UTF-8 - string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"http://www.bl.uk/pdf/patspec.pdf"}}]' + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' headers: User-Agent: - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:49 GMT + - Fri, 23 Oct 2020 21:13:32 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:49 GMT + recorded_at: Fri, 23 Oct 2020 21:13:32 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_sizes/updates_the_doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_sizes/updates_the_doi.yml new file mode 100644 index 000000000..eb0b5e5b0 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/update_sizes/updates_the_doi.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/10703 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:13:33 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/10703"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:13:33 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/creates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/creates_the_record.yml index 23f5e4111..29649052c 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/creates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/creates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:37 GMT + - Fri, 23 Oct 2020 21:13:38 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:37 GMT + recorded_at: Fri, 23 Oct 2020 21:13:38 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:38 GMT + - Fri, 23 Oct 2020 21:13:38 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:38 GMT + recorded_at: Fri, 23 Oct 2020 21:13:38 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/revert_the_changes.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/revert_the_changes.yml index 695720f08..1da75cd64 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/revert_the_changes.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/revert_the_changes.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:39 GMT + - Fri, 23 Oct 2020 21:13:39 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:39 GMT + recorded_at: Fri, 23 Oct 2020 21:13:39 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:39 GMT + - Fri, 23 Oct 2020 21:13:39 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:39 GMT + recorded_at: Fri, 23 Oct 2020 21:13:39 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_creators_change/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_creators_change/updates_the_record.yml index 8db3e71dc..200cd4c9e 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_creators_change/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_creators_change/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:45 GMT + - Fri, 23 Oct 2020 21:13:30 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:45 GMT + recorded_at: Fri, 23 Oct 2020 21:13:30 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_date_issued_is_changed_to_tba/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_date_issued_is_changed_to_tba/updates_the_record.yml index fa940f3df..66ba8febc 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_date_issued_is_changed_to_tba/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_date_issued_is_changed_to_tba/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:43 GMT + - Fri, 23 Oct 2020 21:13:36 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:43 GMT + recorded_at: Fri, 23 Oct 2020 21:13:36 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_description_is_changed_to_empty/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_description_is_changed_to_empty/updates_the_record.yml index ae63a4b10..a76c72c83 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_description_is_changed_to_empty/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_description_is_changed_to_empty/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:49 GMT + - Fri, 23 Oct 2020 21:13:43 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:49 GMT + recorded_at: Fri, 23 Oct 2020 21:13:43 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_doesn_t_exist/creates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_doesn_t_exist/creates_the_record.yml index 4cf338873..2a4c1de48 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_doesn_t_exist/creates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_doesn_t_exist/creates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:46 GMT + - Fri, 23 Oct 2020 21:13:41 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:46 GMT + recorded_at: Fri, 23 Oct 2020 21:13:41 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/4K3M-NYVG @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:46 GMT + - Fri, 23 Oct 2020 21:13:41 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:46 GMT + recorded_at: Fri, 23 Oct 2020 21:13:41 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_exists_https_/github_com/datacite/lupo/issues/89/returns_no_errors.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_exists_https_/github_com/datacite/lupo/issues/89/returns_no_errors.yml new file mode 100644 index 000000000..d466e5556 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_exists_https_/github_com/datacite/lupo/issues/89/returns_no_errors.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/119496 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:13:35 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/119496"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:13:35 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_resource_type_general_changes/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_resource_type_general_changes/updates_the_record.yml index f3528ed5a..4ec836957 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_resource_type_general_changes/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_resource_type_general_changes/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:35 GMT + - Fri, 23 Oct 2020 21:13:42 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:35 GMT + recorded_at: Fri, 23 Oct 2020 21:13:42 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed/updates_the_record.yml index 15011f140..c18093b97 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:34 GMT + - Fri, 23 Oct 2020 21:13:27 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:34 GMT + recorded_at: Fri, 23 Oct 2020 21:13:28 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/revert_the_changes.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/revert_the_changes.yml index 51b69a1a3..80ad0c798 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/revert_the_changes.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/revert_the_changes.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:41 GMT + - Fri, 23 Oct 2020 21:13:29 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:41 GMT + recorded_at: Fri, 23 Oct 2020 21:13:29 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/updates_the_record.yml index 42f990a66..4aa48fa6e 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:57:40 GMT + - Fri, 23 Oct 2020 21:13:28 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,5 +32,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:57:40 GMT + recorded_at: Fri, 23 Oct 2020 21:13:28 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_xml_field_has_datacite_json/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_xml_field_has_datacite_json/updates_the_record.yml new file mode 100644 index 000000000..e1efafcf7 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_xml_field_has_datacite_json/updates_the_record.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/4K3M-NYVG + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"http://bahringer.biz/terry"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:13:44 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:13:44 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_we_transfer_a_DOI_as_staff/updates_the_client_id.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_we_transfer_a_DOI_as_staff/updates_the_client_id.yml new file mode 100644 index 000000000..6ca7d0bef --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_we_transfer_a_DOI_as_staff/updates_the_client_id.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/119495 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"http://www.bl.uk/pdf/pat.pdf"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:13:40 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/119495"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:13:40 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/datacite_url/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/datacite_url/updates_the_record.yml index 8371fcd89..089ee2ee8 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/datacite_url/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/datacite_url/updates_the_record.yml @@ -17,22 +17,22 @@ http_interactions: message: '' headers: Date: - - Mon, 12 Oct 2020 06:05:08 GMT + - Fri, 23 Oct 2020 21:12:43 GMT Content-Type: - application/json;charset=UTF-8 Connection: - keep-alive Set-Cookie: - - __cfduid=d6a173ffae818f4d1e2c702acac9504411602482708; expires=Wed, 11-Nov-20 - 06:05:08 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure + - __cfduid=d04e0583f166103dbb407988a2757797e1603487563; expires=Sun, 22-Nov-20 + 21:12:43 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure Cf-Cache-Status: - DYNAMIC Cf-Request-Id: - - 05bd02b76e0000d6c1ad34b200000001 + - 05f8e797a80000074622be0000000001 Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Report-To: - - '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?lkg-colo=71&lkg-time=1602482708"}],"group":"cf-nel","max_age":604800}' + - '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=roNNReFCkOX%2BtlzLt0rQCgaAGb2ROwz%2Bu%2FxGw0sqwMB7zKjTTYB1Ltr9ZfdB07IxQryphH%2FMprMWIwa2pdpSloBQAfymUr3A"}],"group":"cf-nel","max_age":604800}' Nel: - '{"report_to":"cf-nel","max_age":604800}' Strict-Transport-Security: @@ -40,9 +40,7 @@ http_interactions: Server: - cloudflare Cf-Ray: - - 5e0ea09f1a33d6c1-FRA - Alt-Svc: - - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400 + - 5e6e75390c0c0746-FRA body: encoding: ASCII-8BIT string: |- @@ -53,7 +51,7 @@ http_interactions: } ] http_version: null - recorded_at: Mon, 12 Oct 2020 06:05:08 GMT + recorded_at: Fri, 23 Oct 2020 21:12:43 GMT - request: method: get uri: https://api.test.datacite.org/dois/10.7272/q6g15xs4?include=media,client @@ -71,7 +69,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 06:05:08 GMT + - Fri, 23 Oct 2020 21:12:44 GMT Content-Type: - application/json; charset=utf-8 Connection: @@ -85,11 +83,11 @@ http_interactions: Vary: - Accept-Encoding, Origin X-Request-Id: - - 55769793-84be-4d50-b337-0c6ce4426303 + - a22650cc-03c6-4565-889c-e1e395ca3870 Etag: - W/"952c9dfa71429b6977f25412aa7c4215" X-Runtime: - - '0.078104' + - '0.081831' X-Powered-By: - Phusion Passenger 6.0.6 Server: @@ -99,7 +97,7 @@ http_interactions: string: !binary |- eyJkYXRhIjp7ImlkIjoiMTAuNzI3Mi9xNmcxNXhzNCIsInR5cGUiOiJkb2lzIiwiYXR0cmlidXRlcyI6eyJkb2kiOiIxMC43MjcyL3E2ZzE1eHM0IiwicHJlZml4IjoiMTAuNzI3MiIsInN1ZmZpeCI6InE2ZzE1eHM0IiwiaWRlbnRpZmllcnMiOltdLCJhbHRlcm5hdGVJZGVudGlmaWVycyI6W10sImNyZWF0b3JzIjpbeyJuYW1lIjoiUm9kcmlndWV6LCBSb2JlcnQiLCJuYW1lVHlwZSI6IlBlcnNvbmFsIiwiZ2l2ZW5OYW1lIjoiUm9iZXJ0IiwiZmFtaWx5TmFtZSI6IlJvZHJpZ3VleiIsImFmZmlsaWF0aW9uIjpbIlVDIFNhbiBGcmFuY2lzY28iXX0seyJuYW1lIjoiTW93ZXIsIFdpbGxpYW0iLCJuYW1lVHlwZSI6IlBlcnNvbmFsIiwiZ2l2ZW5OYW1lIjoiV2lsbGlhbSIsImZhbWlseU5hbWUiOiJNb3dlciIsImFmZmlsaWF0aW9uIjpbIlVDTEEiXX1dLCJ0aXRsZXMiOlt7InRpdGxlIjoiTkVYVVMgSGVhZCBDVCJ9XSwicHVibGlzaGVyIjoiVUMgU2FuIEZyYW5jaXNjbyIsImN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ImlkIjoiMTAuNzI3MiIsInR5cGUiOiJwcmVmaXhlcyJ9XX19fV19 http_version: null - recorded_at: Mon, 12 Oct 2020 06:05:08 GMT + recorded_at: Fri, 23 Oct 2020 21:12:44 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/Q6G15XS4 @@ -121,7 +119,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 06:05:09 GMT + - Fri, 23 Oct 2020 21:12:44 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -132,7 +130,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/Q6G15XS4"}' http_version: null - recorded_at: Mon, 12 Oct 2020 06:05:09 GMT + recorded_at: Fri, 23 Oct 2020 21:12:44 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/Q6G15XS4 @@ -154,7 +152,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 06:05:10 GMT + - Fri, 23 Oct 2020 21:12:45 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -165,5 +163,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/Q6G15XS4"}' http_version: null - recorded_at: Mon, 12 Oct 2020 06:05:10 GMT + recorded_at: Fri, 23 Oct 2020 21:12:45 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/json/created_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/json/created_the_record.yml index a17d2c6ac..57f6cb092 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/json/created_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/json/created_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:24 GMT + - Fri, 23 Oct 2020 21:13:14 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/9ZWB-RB91"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:24 GMT + recorded_at: Fri, 23 Oct 2020 21:13:14 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/9ZWB-RB91 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:24 GMT + - Fri, 23 Oct 2020 21:13:15 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/9ZWB-RB91"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:24 GMT + recorded_at: Fri, 23 Oct 2020 21:13:15 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page/creates_a_doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page/creates_a_doi.yml index 57dee62e7..c0d170a8e 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page/creates_a_doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page/creates_a_doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:50 GMT + - Fri, 23 Oct 2020 21:12:54 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:50 GMT + recorded_at: Fri, 23 Oct 2020 21:12:54 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:50 GMT + - Fri, 23 Oct 2020 21:12:54 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:50 GMT + recorded_at: Fri, 23 Oct 2020 21:12:54 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page_schema-org-id_array/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page_schema-org-id_array/creates_a_Doi.yml index 26e3a5606..01f388ae2 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page_schema-org-id_array/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page_schema-org-id_array/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:42 GMT + - Fri, 23 Oct 2020 21:13:07 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:42 GMT + recorded_at: Fri, 23 Oct 2020 21:13:07 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:42 GMT + - Fri, 23 Oct 2020 21:13:07 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:42 GMT + recorded_at: Fri, 23 Oct 2020 21:13:07 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/mds_doi/add_metadata.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/mds_doi/add_metadata.yml index d56056e05..439fc82ea 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/mds_doi/add_metadata.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/mds_doi/add_metadata.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:51 GMT + - Fri, 23 Oct 2020 21:13:14 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:51 GMT + recorded_at: Fri, 23 Oct 2020 21:13:14 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:52 GMT + - Fri, 23 Oct 2020 21:13:14 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:52 GMT + recorded_at: Fri, 23 Oct 2020 21:13:14 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information/updates_the_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information/updates_the_Doi.yml new file mode 100644 index 000000000..a4ac93b79 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information/updates_the_Doi.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/05MB-Q396 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://example.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:13:06 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/05MB-Q396"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:13:06 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information_via_xml/updates_the_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information_via_xml/updates_the_Doi.yml new file mode 100644 index 000000000..915c16408 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/remove_series_information_via_xml/updates_the_Doi.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/05MB-Q396 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:12:39 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/05MB-Q396"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:12:39 GMT +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/05MB-Q396 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:12:39 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/05MB-Q396"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:12:39 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/schema_org/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/schema_org/updates_the_record.yml index 23631ca89..028e14118 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/schema_org/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/schema_org/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:44 GMT + - Fri, 23 Oct 2020 21:13:18 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/8NA3-9S47"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:44 GMT + recorded_at: Fri, 23 Oct 2020 21:13:19 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/8NA3-9S47 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:44 GMT + - Fri, 23 Oct 2020 21:13:19 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/8NA3-9S47"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:44 GMT + recorded_at: Fri, 23 Oct 2020 21:13:19 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_individual_attribute/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_individual_attribute/creates_a_Doi.yml index 6c3c03ccf..388c278c3 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_individual_attribute/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_individual_attribute/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:31 GMT + - Fri, 23 Oct 2020 21:13:23 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:31 GMT + recorded_at: Fri, 23 Oct 2020 21:13:23 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:31 GMT + - Fri, 23 Oct 2020 21:13:23 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:31 GMT + recorded_at: Fri, 23 Oct 2020 21:13:24 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_with_landing_page_info_as_admin/creates_a_doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_with_landing_page_info_as_admin/creates_a_doi.yml new file mode 100644 index 000000000..b0ce7d13f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_with_landing_page_info_as_admin/creates_a_doi.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/10703 + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://blog.datacite.org/re3data-science-europe/"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 23 Oct 2020 21:13:12 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/10703"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:13:12 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_creators_change/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_creators_change/creates_a_Doi.yml index e03a08b8b..20e7dd471 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_creators_change/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_creators_change/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:23 GMT + - Fri, 23 Oct 2020 21:12:56 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:23 GMT + recorded_at: Fri, 23 Oct 2020 21:12:56 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:23 GMT + - Fri, 23 Oct 2020 21:12:56 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:23 GMT + recorded_at: Fri, 23 Oct 2020 21:12:56 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid/creates_a_Doi.yml index 98cf87ddf..1e10bb69f 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:21 GMT + - Fri, 23 Oct 2020 21:13:20 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:21 GMT + recorded_at: Fri, 23 Oct 2020 21:13:20 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:22 GMT + - Fri, 23 Oct 2020 21:13:20 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:22 GMT + recorded_at: Fri, 23 Oct 2020 21:13:20 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_random_doi/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_random_doi/creates_a_Doi.yml index 3e0715705..a126c4444 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_random_doi/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_random_doi/creates_a_Doi.yml @@ -17,11 +17,11 @@ http_interactions: - Basic response: status: - code: 201 - message: Created + code: 200 + message: OK headers: Date: - - Mon, 12 Oct 2020 06:34:21 GMT + - Fri, 23 Oct 2020 21:12:57 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/003R-J076"}' http_version: null - recorded_at: Mon, 12 Oct 2020 06:34:21 GMT + recorded_at: Fri, 23 Oct 2020 21:12:57 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/003R-J076 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 06:34:21 GMT + - Fri, 23 Oct 2020 21:12:57 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/003R-J076"}' http_version: null - recorded_at: Mon, 12 Oct 2020 06:34:21 GMT + recorded_at: Fri, 23 Oct 2020 21:12:57 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_attributes/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_attributes/creates_a_Doi.yml index aba34dbfe..776ff0cbb 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_attributes/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_attributes/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:10 GMT + - Fri, 23 Oct 2020 21:12:50 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:10 GMT + recorded_at: Fri, 23 Oct 2020 21:12:50 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:11 GMT + - Fri, 23 Oct 2020 21:12:50 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:11 GMT + recorded_at: Fri, 23 Oct 2020 21:12:50 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_optional_properties/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_optional_properties/creates_a_Doi.yml index 3434f012e..4ce555b2b 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_optional_properties/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_optional_properties/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:03 GMT + - Fri, 23 Oct 2020 21:13:16 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:03 GMT + recorded_at: Fri, 23 Oct 2020 21:13:16 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:03 GMT + - Fri, 23 Oct 2020 21:13:16 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:03 GMT + recorded_at: Fri, 23 Oct 2020 21:13:16 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_recommended_properties/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_recommended_properties/creates_a_Doi.yml index a225569bf..3e7d1e20a 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_recommended_properties/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_recommended_properties/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:47 GMT + - Fri, 23 Oct 2020 21:13:21 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:47 GMT + recorded_at: Fri, 23 Oct 2020 21:13:21 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:47 GMT + - Fri, 23 Oct 2020 21:13:21 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:47 GMT + recorded_at: Fri, 23 Oct 2020 21:13:21 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_3/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_3/creates_a_Doi.yml index 8a81b216b..fbbf96d6e 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_3/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_3/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:14 GMT + - Fri, 23 Oct 2020 21:12:52 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:14 GMT + recorded_at: Fri, 23 Oct 2020 21:12:52 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:15 GMT + - Fri, 23 Oct 2020 21:12:52 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:15 GMT + recorded_at: Fri, 23 Oct 2020 21:12:52 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_0/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_0/creates_a_Doi.yml index 0c1c20449..0628e57dd 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_0/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_0/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:08 GMT + - Fri, 23 Oct 2020 21:13:06 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:08 GMT + recorded_at: Fri, 23 Oct 2020 21:13:06 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:08 GMT + - Fri, 23 Oct 2020 21:13:06 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:08 GMT + recorded_at: Fri, 23 Oct 2020 21:13:06 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_2/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_2/creates_a_Doi.yml index 291af5a76..50d6f56a6 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_2/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_2/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:45 GMT + - Fri, 23 Oct 2020 21:12:48 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:45 GMT + recorded_at: Fri, 23 Oct 2020 21:12:48 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:45 GMT + - Fri, 23 Oct 2020 21:12:48 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:45 GMT + recorded_at: Fri, 23 Oct 2020 21:12:48 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_title_changes/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_title_changes/creates_a_Doi.yml index 5fb13e66b..68ffb0141 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_title_changes/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_title_changes/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:20 GMT + - Fri, 23 Oct 2020 21:13:04 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:20 GMT + recorded_at: Fri, 23 Oct 2020 21:13:05 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:20 GMT + - Fri, 23 Oct 2020 21:13:05 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:20 GMT + recorded_at: Fri, 23 Oct 2020 21:13:05 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_blank/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_blank/creates_a_Doi.yml index 29c5549d9..d66b06508 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_blank/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_blank/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:29 GMT + - Fri, 23 Oct 2020 21:13:22 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:29 GMT + recorded_at: Fri, 23 Oct 2020 21:13:22 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:30 GMT + - Fri, 23 Oct 2020 21:13:23 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:30 GMT + recorded_at: Fri, 23 Oct 2020 21:13:23 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_nil/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_nil/creates_a_Doi.yml index b0f23d5af..65103bec5 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_nil/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_nil/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:09 GMT + - Fri, 23 Oct 2020 21:12:53 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:09 GMT + recorded_at: Fri, 23 Oct 2020 21:12:53 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:09 GMT + - Fri, 23 Oct 2020 21:12:53 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:09 GMT + recorded_at: Fri, 23 Oct 2020 21:12:53 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_url_changes_ftp_url/creates_a_Doi.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_url_changes_ftp_url/creates_a_Doi.yml index 72c4097b8..42a1a6fa6 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_url_changes_ftp_url/creates_a_Doi.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_url_changes_ftp_url/creates_a_Doi.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:46 GMT + - Fri, 23 Oct 2020 21:12:40 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:46 GMT + recorded_at: Fri, 23 Oct 2020 21:12:40 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/10703 @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:51:46 GMT + - Fri, 23 Oct 2020 21:12:40 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/10703"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:51:46 GMT + recorded_at: Fri, 23 Oct 2020 21:12:41 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide/updates_the_record.yml new file mode 100644 index 000000000..de5f94ea4 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide/updates_the_record.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/KE89U020Q62IIEZ + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 23 Oct 2020 21:15:45 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/KE89U020Q62IIEZ"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:15:45 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide_with_reason/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide_with_reason/updates_the_record.yml new file mode 100644 index 000000000..d48e413ed --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/hide_with_reason/updates_the_record.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/579VTYKX + body: + encoding: UTF-8 + string: '[{"index":100,"type":"HS_ADMIN","data":{"format":"admin","value":{"handle":"TEST/ADMIN","index":300,"permissions":"111111111111"}}},{"index":1,"type":"URL","data":{"format":"string","value":"https://datacite.org"}}]' + headers: + User-Agent: + - Mozilla/5.0 (compatible; Maremma/4.7.2; mailto:info@datacite.org) + Accept: + - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 + Content-Type: + - application/json;charset=UTF-8 + Authorization: + - Basic + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 23 Oct 2020 21:15:49 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/579VTYKX"}' + http_version: null + recorded_at: Fri, 23 Oct 2020 21:15:49 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/state/publish/updates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/publish/updates_the_record.yml index 13f6fdf6d..d427d1676 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/state/publish/updates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/publish/updates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:54:25 GMT + - Fri, 23 Oct 2020 21:15:51 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:54:25 GMT + recorded_at: Fri, 23 Oct 2020 21:15:51 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/4K3M-NYVG @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:54:26 GMT + - Fri, 23 Oct 2020 21:15:52 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:54:26 GMT + recorded_at: Fri, 23 Oct 2020 21:15:52 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/state/register/creates_the_record.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/register/creates_the_record.yml index 3e9ddff3f..cb1adcf3e 100644 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/state/register/creates_the_record.yml +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/register/creates_the_record.yml @@ -21,7 +21,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:54:22 GMT + - Fri, 23 Oct 2020 21:15:50 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -32,7 +32,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:54:22 GMT + recorded_at: Fri, 23 Oct 2020 21:15:51 GMT - request: method: put uri: https://handle.test.datacite.org/api/handles/10.14454/4K3M-NYVG @@ -54,7 +54,7 @@ http_interactions: message: OK headers: Date: - - Mon, 12 Oct 2020 05:54:22 GMT + - Fri, 23 Oct 2020 21:15:51 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -65,5 +65,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"responseCode":1,"handle":"10.14454/4K3M-NYVG"}' http_version: null - recorded_at: Mon, 12 Oct 2020 05:54:22 GMT + recorded_at: Fri, 23 Oct 2020 21:15:51 GMT recorded_with: VCR 5.1.0 diff --git a/spec/requests/datacite_dois_spec.rb b/spec/requests/datacite_dois_spec.rb index ac578cf4d..964ce50e1 100644 --- a/spec/requests/datacite_dois_spec.rb +++ b/spec/requests/datacite_dois_spec.rb @@ -734,7 +734,7 @@ end context 'hide' do - let(:doi) { create(:doi, client: client, aasm_state: "findable") } + let(:doi) { create(:doi, client: client, url: "https://datacite.org", aasm_state: "findable") } let(:valid_attributes) do { "data" => { @@ -757,7 +757,7 @@ end context 'hide with reason' do - let(:doi) { create(:doi, client: client, aasm_state: "findable") } + let(:doi) { create(:doi, client: client, url: "https://datacite.org", aasm_state: "findable") } let(:valid_attributes) do { "data" => { @@ -868,7 +868,7 @@ end context 'update sizes' do - let(:doi) { create(:doi, doi: "10.14454/10703", client: client) } + let(:doi) { create(:doi, doi: "10.14454/10703", url: "https://datacite.org", client: client) } let(:sizes) { ["100 samples", "56 pages"] } let(:valid_attributes) do { @@ -891,7 +891,7 @@ end context 'update formats' do - let(:doi) { create(:doi, doi: "10.14454/10703", client: client) } + let(:doi) { create(:doi, doi: "10.14454/10703", url: "https://datacite.org", client: client) } let(:formats) { ["application/json"] } let(:valid_attributes) do { @@ -937,7 +937,7 @@ end context 'when the record exists https://github.com/datacite/lupo/issues/89' do - let(:doi) { create(:doi, doi: "10.14454/119496", client: client) } + let(:doi) { create(:doi, doi: "10.14454/119496", url: "https://datacite.org", client: client) } let(:valid_attributes) { JSON.parse(file_fixture('datacite_89.json').read) } it 'returns no errors' do @@ -1561,6 +1561,7 @@ it 'fails to create a Doi' do post '/dois', valid_attributes, headers + puts last_response.body expect(last_response.status).to eq(422) end end @@ -3246,7 +3247,7 @@ samples. Percussive scooping can reduce the amount of downward force required by about two to four times depending on the cohesion of the soil and the depth of the sampling. The goal for this project is to build a working prototype of a percussive scoop for Axel.", "descriptionType" => "Abstract" }]} - let(:doi) { create(:doi, client: client, doi: "10.14454/05mb-q396", xml: xml, event: "publish") } + let(:doi) { create(:doi, client: client, doi: "10.14454/05mb-q396", url: "https://example.org", xml: xml, event: "publish") } let(:update_attributes) do { "data" => { @@ -3269,7 +3270,7 @@ context 'remove series_information via xml', elasticsearch: true do let(:xml) { Base64.strict_encode64(File.read(file_fixture('datacite_series_information.xml'))) } let(:xml_new) { Base64.strict_encode64(File.read(file_fixture('datacite_no_series_information.xml'))) } - let!(:doi) { create(:doi, client: client, doi: "10.14454/05mb-q396", event: "publish") } + let!(:doi) { create(:doi, client: client, doi: "10.14454/05mb-q396", url: "https://datacite.org", event: "publish") } let(:update_attributes) do { "data" => { @@ -3637,7 +3638,7 @@ it 'returns url' do get "/dois/#{doi.doi}/get-url", nil, headers - expect(json["url"]).to eq("http://stokes.info/erin") + expect(json["url"]).to eq("https://example.org") expect(last_response.status).to eq(200) end end