From 42f5e4dd3b901ecaee3eb5bf697c2c3d04a84fcd Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 12 Oct 2020 09:12:01 +0200 Subject: [PATCH] register in handle system as part of the api call. datacite/datacite#1049 --- app/controllers/application_controller.rb | 3 +- app/controllers/datacite_dois_controller.rb | 5 +- app/models/concerns/helpable.rb | 11 +-- app/models/doi.rb | 8 +- config/initializers/constants.rb | 1 + spec/concerns/helpable_spec.rb | 11 ++- .../dois/DOI/get-url/it_works/returns_url.yml | 6 +- .../DOI/get-url/no_password/returns_url.yml | 8 +- .../get-url/not_DataCite_DOI/returns_nil.yml | 32 ------- .../get-url/not_found/returns_not_found.yml | 6 +- .../GET_/dois/get-dois/returns_all_dois.yml | 16 ++-- .../lupo/issues/84/returns_no_errors.yml | 36 +++++++ .../creates_the_record.yml | 69 +++++++++++++ .../revert_the_changes.yml | 69 +++++++++++++ .../updates_the_record.yml | 36 +++++++ .../updates_the_record.yml | 36 +++++++ .../updates_the_record.yml | 36 +++++++ .../creates_the_record.yml | 69 +++++++++++++ .../updates_the_record.yml | 36 +++++++ .../updates_the_record.yml | 36 +++++++ .../revert_the_changes.yml | 36 +++++++ .../updates_the_record.yml | 36 +++++++ .../returns_validation_error.yml | 36 +++++++ .../dois/datacite_url/updates_the_record.yml | 96 ++++++++++++++++--- .../POST_/dois/json/created_the_record.yml | 69 +++++++++++++ .../POST_/dois/landing_page/creates_a_doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../POST_/dois/mds_doi/add_metadata.yml | 69 +++++++++++++ .../dois/schema_org/updates_the_record.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../when_the_title_changes/creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../creates_a_Doi.yml | 69 +++++++++++++ .../downloads/has_downloads_meta.yml | 51 ---------- .../state/publish/updates_the_record.yml | 69 +++++++++++++ .../state/register/creates_the_record.yml | 69 +++++++++++++ .../findable_doi/update_state_change.yml | 36 +++++++ .../findable_doi/update_url_change.yml | 36 +++++++ .../registered_doi/update_state_change.yml | 36 +++++++ .../registered_doi/update_url_change.yml | 36 +++++++ spec/models/doi_spec.rb | 42 -------- spec/requests/datacite_dois_spec.rb | 70 +++++++------- 52 files changed, 2280 insertions(+), 210 deletions(-) delete mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_DataCite_DOI/returns_nil.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/NoMethodError_https_/github_com/datacite/lupo/issues/84/returns_no_errors.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/creates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/revert_the_changes.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_creators_change/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_date_issued_is_changed_to_tba/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_description_is_changed_to_empty/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_doesn_t_exist/creates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_resource_type_general_changes/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/revert_the_changes.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/creators_no_xml/returns_validation_error.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/json/created_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page/creates_a_doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page_schema-org-id_array/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/mds_doi/add_metadata.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/schema_org/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_individual_attribute/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_creators_change/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_random_doi/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_attributes/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_optional_properties/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_recommended_properties/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_3/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_0/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_2/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_title_changes/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_blank/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_nil/creates_a_Doi.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_url_changes_ftp_url/creates_a_Doi.yml delete mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/downloads/has_downloads_meta.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/state/publish/updates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/DataciteDoisController/state/register/creates_the_record.yml create mode 100644 spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_state_change.yml create mode 100644 spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_url_change.yml create mode 100644 spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_state_change.yml create mode 100644 spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_url_change.yml diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 91ee69fb4..a031f85b4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -104,6 +104,7 @@ def authenticated_user when "ActionController::UnknownFormat" then 406 when "ActiveRecord::RecordNotUnique" then 409 when "ActiveModel::ForbiddenAttributesError", "ActionController::ParameterMissing", "ActionController::UnpermittedParameters", "ActiveModelSerializers::Adapter::JsonApi::Deserialization::InvalidDocument" then 422 + when "ActionController::BadRequest" then 400 when "SocketError" then 500 else 400 end @@ -121,7 +122,7 @@ def authenticated_user message = "The content type is not recognized." elsif status == 409 message = "The resource already exists." - elsif ["JSON::ParserError", "Nokogiri::XML::SyntaxError", "ActionDispatch::Http::Parameters::ParseError"].include?(exception.class.to_s) + elsif ["JSON::ParserError", "Nokogiri::XML::SyntaxError", "ActionDispatch::Http::Parameters::ParseError", "ActionController::BadRequest"].include?(exception.class.to_s) message = exception.message else Raven.capture_exception(exception) diff --git a/app/controllers/datacite_dois_controller.rb b/app/controllers/datacite_dois_controller.rb index ffd37da12..8c14068a6 100644 --- a/app/controllers/datacite_dois_controller.rb +++ b/app/controllers/datacite_dois_controller.rb @@ -690,7 +690,10 @@ def safe_params p[:subjects], p[:contentUrl], p[:schemaVersion]].compact # generate random DOI if no DOI is provided - if p[:doi].blank? && p[:prefix].present? + # make random DOI predictable in test + if p[:doi].blank? && p[:prefix].present? && Rails.env.test? + p[:doi] = generate_random_dois(p[:prefix], number: 123456).first + elsif p[:doi].blank? && p[:prefix].present? p[:doi] = generate_random_dois(p[:prefix]).first end diff --git a/app/models/concerns/helpable.rb b/app/models/concerns/helpable.rb index 29c26af5f..fde6ca2a5 100644 --- a/app/models/concerns/helpable.rb +++ b/app/models/concerns/helpable.rb @@ -14,22 +14,19 @@ module Helpable def register_url unless url.present? - Rails.logger.error "[Handle] Error updating DOI " + doi + ": url missing." - return OpenStruct.new(body: { "errors" => [{ "title" => "URL missing." }] }) + raise ActionController::BadRequest.new(), "[Handle] Error updating DOI " + doi + ": url missing." end unless client_id.present? - Rails.logger.error "[Handle] Error updating DOI " + doi + ": client ID missing." - return OpenStruct.new(body: { "errors" => [{ "title" => "Client ID missing." }] }) + raise ActionController::BadRequest.new(), "[Handle] Error updating DOI " + doi + ": client ID missing." end unless match_url_with_domains(url: url, domains: client.domains) - Rails.logger.error "[Handle] Error updating DOI " + doi + ": URL not allowed by client domains settings." - return OpenStruct.new(body: { "errors" => [{ "title" => "URL not allowed by client domains settings." }] }) + raise ActionController::BadRequest.new(), "[Handle] Error updating DOI " + doi + ": URL not allowed by client domains settings." end unless is_registered_or_findable? - return OpenStruct.new(body: { "errors" => [{ "title" => "DOI is not registered or findable." }] }) + raise ActionController::BadRequest.new(), "DOI is not registered or findable." end payload = [ diff --git a/app/models/doi.rb b/app/models/doi.rb index 06f12949e..e96d4bdc0 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -122,7 +122,7 @@ class Doi < ActiveRecord::Base validate :check_geo_locations, if: :geo_locations? validate :check_language, if: :language? - after_commit :update_url, on: [:create, :update] + # after_commit :update_url, on: [:create, :update] after_commit :update_media, on: [:create, :update] before_validation :update_xml, if: :regenerate @@ -132,7 +132,7 @@ class Doi < ActiveRecord::Base before_validation :update_rights_list, if: :rights_list? before_validation :update_identifiers before_validation :update_types - before_save :set_defaults, :save_metadata + before_save :set_defaults, :save_metadata, :update_url before_create { self.created = Time.zone.now.utc.iso8601 } scope :q, ->(query) { where("dataset.doi = ?", query) } @@ -1773,8 +1773,8 @@ def update_url if %w(europ).include?(provider_id) || type == "OtherDoi" UrlJob.perform_later(doi) - else - HandleJob.perform_later(doi) + elsif url_changed? + register_url end end diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index c8c8bcf62..608ed994e 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -15,6 +15,7 @@ class IdentifierError < RuntimeError; end ActiveRecord::RecordNotUnique, ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, + ActionController::BadRequest, ActionController::UnknownFormat, ActionController::RoutingError, ActionController::ParameterMissing, diff --git a/spec/concerns/helpable_spec.rb b/spec/concerns/helpable_spec.rb index ec2d1cae2..17df3016f 100644 --- a/spec/concerns/helpable_spec.rb +++ b/spec/concerns/helpable_spec.rb @@ -167,34 +167,35 @@ it 'wrong domain' do client = create(:client, provider: provider, symbol: ENV['MDS_USERNAME'], password: ENV['MDS_PASSWORD'], domains: "example.org") subject = build(:doi, doi: "10.5438/mcnv-ga6n", url: "https://blog.datacite.org/", client: client, aasm_state: "findable") - expect(subject.register_url.body).to eq("errors"=>[{"title"=>"URL not allowed by client domains settings."}]) + expect { subject.register_url }.to raise_error(ActionController::BadRequest, "[Handle] Error updating DOI 10.5438/MCNV-GA6N: URL not allowed by client domains settings.") end it 'wrong subdomain' do client = create(:client, provider: provider, symbol: ENV['MDS_USERNAME'], password: ENV['MDS_PASSWORD'], domains: "datacite.org") subject = build(:doi, doi: "10.5438/mcnv-ga6n", url: "https://blog.datacite.org/", client: client, aasm_state: "findable") - expect(subject.register_url.body).to eq("errors"=>[{"title"=>"URL not allowed by client domains settings."}]) + expect { subject.register_url }.to raise_error(ActionController::BadRequest, "[Handle] Error updating DOI 10.5438/MCNV-GA6N: URL not allowed by client domains settings.") end it 'wildcard for subdomain but using naked domain' do client = create(:client, provider: provider, symbol: ENV['MDS_USERNAME'], password: ENV['MDS_PASSWORD'], domains: "*.datacite.org") subject = build(:doi, doi: "10.5438/mcnv-ga6n", url: "https://datacite.org/", client: client, aasm_state: "findable") - expect(subject.register_url.body).to eq("errors"=>[{"title"=>"URL not allowed by client domains settings."}]) + expect { subject.register_url }.to raise_error(ActionController::BadRequest, "[Handle] Error updating DOI 10.5438/MCNV-GA6N: URL not allowed by client domains settings.") end it 'draft doi' do subject = build(:doi, doi: "10.5438/mcnv-ga6n", url: "https://blog.datacite.org/", client: client, aasm_state: "draft") - expect(subject.register_url.body).to eq("errors"=>[{"title"=>"DOI is not registered or findable."}]) + expect { subject.register_url }.to raise_error(ActionController::BadRequest, "DOI is not registered or findable.") end it 'missing username' do subject = build(:doi, doi: "10.5438/mcnv-ga6n", url: "https://blog.datacite.org/re3data-science-europe/", client: nil, aasm_state: "findable") - expect(subject.register_url.body).to eq("errors"=>[{"title"=>"Client ID missing."}]) + expect { subject.register_url }.to raise_error(ActionController::BadRequest, "[Handle] Error updating DOI 10.5438/MCNV-GA6N: client ID missing.") end it 'server not responsible' do subject = build(:doi, doi: "10.1371/journal.pbio.2001414", url: "https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.2001414", client: client, aasm_state: "findable") expect(subject.register_url.body).to eq("errors"=>[{"status"=>400, "title"=>{"responseCode"=>301, "message"=>"That prefix doesn't live here", "handle"=>"10.1371/JOURNAL.PBIO.2001414"}}]) + # expect { subject.register_url }.to raise_error(ActionController::BadRequest, "No valid prefix found") end end 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 5cb59c7e1..1338fa5db 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 @@ -8,7 +8,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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: @@ -17,7 +17,7 @@ http_interactions: message: OK headers: Date: - - Sun, 26 Jul 2020 06:45:38 GMT + - Mon, 12 Oct 2020 05:11:57 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: Sun, 26 Jul 2020 06:45:38 GMT + recorded_at: Mon, 12 Oct 2020 05:11:57 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 bc88e7ea2..f78201085 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 @@ -8,7 +8,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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: @@ -17,7 +17,7 @@ http_interactions: message: OK headers: Date: - - Sun, 26 Jul 2020 06:45:49 GMT + - Mon, 12 Oct 2020 05:12:08 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":"https://www.datacite.org/roadmap.html"},"ttl":86400,"timestamp":"2018-07-20T11:49:02Z"}]}' + 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"}]}' http_version: null - recorded_at: Sun, 26 Jul 2020 06:45:49 GMT + recorded_at: Mon, 12 Oct 2020 05:12:08 GMT recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_DataCite_DOI/returns_nil.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_DataCite_DOI/returns_nil.yml deleted file mode 100644 index 6e87f0019..000000000 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/GET_/dois/DOI/get-url/not_DataCite_DOI/returns_nil.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://handle.test.datacite.org/api/handles/10.1371/JOURNAL.PBIO.2001414?index=1 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; 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: 400 - message: Bad Request - headers: - Date: - - Sun, 26 Jul 2020 06:45:45 GMT - Content-Type: - - application/json;charset=UTF-8 - Content-Length: - - '102' - Connection: - - keep-alive - body: - encoding: ASCII-8BIT - string: '{"responseCode":301,"message":"That prefix doesn''t live here","handle":"10.1371/JOURNAL.PBIO.2001414"}' - http_version: null - recorded_at: Sun, 26 Jul 2020 06:45:45 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 56a5e9c99..cf9467855 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 @@ -8,7 +8,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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: @@ -17,7 +17,7 @@ http_interactions: message: Not Found headers: Date: - - Sun, 26 Jul 2020 06:45:42 GMT + - Mon, 12 Oct 2020 05:12:02 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: Sun, 26 Jul 2020 06:45:43 GMT + recorded_at: Mon, 12 Oct 2020 05:12:02 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 78082df48..549967a45 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 @@ -8,7 +8,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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 Authorization: @@ -19,7 +19,7 @@ http_interactions: message: OK headers: Date: - - Sun, 26 Jul 2020 06:46:17 GMT + - Mon, 12 Oct 2020 05:15:41 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -28,9 +28,9 @@ http_interactions: - Accept-Encoding body: encoding: ASCII-8BIT - string: '{"responseCode":1,"prefix":"10.5438","totalCount":"446","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/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/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/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"]}' + 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: Sun, 26 Jul 2020 06:46:17 GMT + recorded_at: Mon, 12 Oct 2020 05:15:41 GMT - request: method: get uri: https://handle.test.datacite.org/api/handles?page=0&pageSize=1000&prefix=10.5438 @@ -39,7 +39,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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 Authorization: @@ -50,7 +50,7 @@ http_interactions: message: OK headers: Date: - - Sun, 26 Jul 2020 06:46:17 GMT + - Mon, 12 Oct 2020 05:15:41 GMT Content-Type: - application/json;charset=UTF-8 Connection: @@ -59,7 +59,7 @@ http_interactions: - Accept-Encoding body: encoding: ASCII-8BIT - string: '{"responseCode":1,"prefix":"10.5438","totalCount":"446","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/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/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/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"]}' + 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: Sun, 26 Jul 2020 06:46:17 GMT + recorded_at: Mon, 12 Oct 2020 05:15:41 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 new file mode 100644 index 000000000..54d43e3f2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/NoMethodError_https_/github_com/datacite/lupo/issues/84/returns_no_errors.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":"https://figshare.com/articles/Additional_file_1_of_Contemporary_ancestor_Adaptive_divergence_from_standing_genetic_variation_in_Pacific_marine_threespine_stickleback/6839054/1"}}]' + 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: + - Mon, 12 Oct 2020 06:46:15 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: Mon, 12 Oct 2020 06:46:15 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 new file mode 100644 index 000000000..23f5e4111 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/creates_the_record.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:57:37 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: Mon, 12 Oct 2020 05:57:37 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:57:38 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: Mon, 12 Oct 2020 05:57: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 new file mode 100644 index 000000000..695720f08 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_a_doi_is_created_ignore_reverting_back/revert_the_changes.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:57: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/10703"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:57:39 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:57: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/10703"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:57: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 new file mode 100644 index 000000000..8db3e71dc --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_creators_change/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://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: + - Mon, 12 Oct 2020 05:57: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/4K3M-NYVG"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:57:45 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 new file mode 100644 index 000000000..fa940f3df --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_date_issued_is_changed_to_tba/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://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: + - Mon, 12 Oct 2020 05:57:43 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: Mon, 12 Oct 2020 05:57:43 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 new file mode 100644 index 000000000..ae63a4b10 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_description_is_changed_to_empty/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://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: + - Mon, 12 Oct 2020 05:57: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/4K3M-NYVG"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:57:49 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 new file mode 100644 index 000000000..4cf338873 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_record_doesn_t_exist/creates_the_record.yml @@ -0,0 +1,69 @@ +--- +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://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: + - Mon, 12 Oct 2020 05:57:46 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: Mon, 12 Oct 2020 05:57:46 GMT +- 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://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: + - Mon, 12 Oct 2020 05:57:46 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: Mon, 12 Oct 2020 05:57:46 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 new file mode 100644 index 000000000..f3528ed5a --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_resource_type_general_changes/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://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: + - Mon, 12 Oct 2020 05:57: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/4K3M-NYVG"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:57:35 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 new file mode 100644 index 000000000..15011f140 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed/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://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: + - Mon, 12 Oct 2020 05:57:34 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: Mon, 12 Oct 2020 05:57:34 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 new file mode 100644 index 000000000..51b69a1a3 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/revert_the_changes.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://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: + - Mon, 12 Oct 2020 05:57:41 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: Mon, 12 Oct 2020 05:57:41 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 new file mode 100644 index 000000000..42f990a66 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/PATCH_/dois/_id/when_the_title_is_changed_and_reverted_back/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://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: + - Mon, 12 Oct 2020 05:57: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/4K3M-NYVG"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:57:40 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/POST_/dois/creators_no_xml/returns_validation_error.yml new file mode 100644 index 000000000..f36b8d864 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/creators_no_xml/returns_validation_error.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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51: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/10703"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:51:49 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 e73b906be..8371fcd89 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 @@ -8,7 +8,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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: @@ -17,26 +17,32 @@ http_interactions: message: '' headers: Date: - - Sun, 26 Jul 2020 11:59:22 GMT + - Mon, 12 Oct 2020 06:05:08 GMT Content-Type: - application/json;charset=UTF-8 Connection: - keep-alive Set-Cookie: - - __cfduid=d3a4beeabb2cc820bb4733e1c09f6e51e1595764762; expires=Tue, 25-Aug-20 - 11:59:22 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure + - __cfduid=d6a173ffae818f4d1e2c702acac9504411602482708; expires=Wed, 11-Nov-20 + 06:05:08 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure Cf-Cache-Status: - DYNAMIC Cf-Request-Id: - - 042c96fd92000097f60ca66200000001 + - 05bd02b76e0000d6c1ad34b200000001 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}' + Nel: + - '{"report_to":"cf-nel","max_age":604800}' Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Server: - cloudflare Cf-Ray: - - 5b8df4428cfa97f6-FRA + - 5e0ea09f1a33d6c1-FRA + Alt-Svc: + - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400 body: encoding: ASCII-8BIT string: |- @@ -47,7 +53,7 @@ http_interactions: } ] http_version: null - recorded_at: Sun, 26 Jul 2020 11:59:22 GMT + recorded_at: Mon, 12 Oct 2020 06:05:08 GMT - request: method: get uri: https://api.test.datacite.org/dois/10.7272/q6g15xs4?include=media,client @@ -56,7 +62,7 @@ http_interactions: string: '' headers: User-Agent: - - Mozilla/5.0 (compatible; Maremma/4.7.1; mailto:info@datacite.org) + - 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: @@ -65,7 +71,7 @@ http_interactions: message: OK headers: Date: - - Sun, 26 Jul 2020 11:59:22 GMT + - Mon, 12 Oct 2020 06:05:08 GMT Content-Type: - application/json; charset=utf-8 Connection: @@ -79,11 +85,11 @@ http_interactions: Vary: - Accept-Encoding, Origin X-Request-Id: - - c66ab40f-5caa-464a-b892-ff1b1a7850ac + - 55769793-84be-4d50-b337-0c6ce4426303 Etag: - W/"952c9dfa71429b6977f25412aa7c4215" X-Runtime: - - '0.092929' + - '0.078104' X-Powered-By: - Phusion Passenger 6.0.6 Server: @@ -93,5 +99,71 @@ http_interactions: string: !binary |- eyJkYXRhIjp7ImlkIjoiMTAuNzI3Mi9xNmcxNXhzNCIsInR5cGUiOiJkb2lzIiwiYXR0cmlidXRlcyI6eyJkb2kiOiIxMC43MjcyL3E2ZzE1eHM0IiwicHJlZml4IjoiMTAuNzI3MiIsInN1ZmZpeCI6InE2ZzE1eHM0IiwiaWRlbnRpZmllcnMiOltdLCJhbHRlcm5hdGVJZGVudGlmaWVycyI6W10sImNyZWF0b3JzIjpbeyJuYW1lIjoiUm9kcmlndWV6LCBSb2JlcnQiLCJuYW1lVHlwZSI6IlBlcnNvbmFsIiwiZ2l2ZW5OYW1lIjoiUm9iZXJ0IiwiZmFtaWx5TmFtZSI6IlJvZHJpZ3VleiIsImFmZmlsaWF0aW9uIjpbIlVDIFNhbiBGcmFuY2lzY28iXX0seyJuYW1lIjoiTW93ZXIsIFdpbGxpYW0iLCJuYW1lVHlwZSI6IlBlcnNvbmFsIiwiZ2l2ZW5OYW1lIjoiV2lsbGlhbSIsImZhbWlseU5hbWUiOiJNb3dlciIsImFmZmlsaWF0aW9uIjpbIlVDTEEiXX1dLCJ0aXRsZXMiOlt7InRpdGxlIjoiTkVYVVMgSGVhZCBDVCJ9XSwicHVibGlzaGVyIjoiVUMgU2FuIEZyYW5jaXNjbyIsImNvbnRhaW5lciI6e30sInB1YmxpY2F0aW9uWWVhciI6MjAxNywic3ViamVjdHMiOltdLCJjb250cmlidXRvcnMiOltdLCJkYXRlcyI6W3siZGF0ZSI6IjIwMTciLCJkYXRlVHlwZSI6Iklzc3VlZCJ9XSwibGFuZ3VhZ2UiOiJlbiIsInR5cGVzIjp7InJpcyI6IkRBVEEiLCJiaWJ0ZXgiOiJtaXNjIiw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0cyI6eyJkYXRhIjpbXX0sInBhcnRPZiI6eyJkYXRhIjpbXX0sInZlcnNpb25zIjp7ImRhdGEiOltdfSwidmVyc2lvbk9mIjp7ImRhdGEiOltdfX19LCJpbmNsdWRlZCI6W3siaWQiOiJjZGwudWNzZmN0c2kiLCJ0eXBlIjoiY2xpZW50cyIsImF0dHJpYnV0ZXMiOnsibmFtZSI6IlVDU0YgQ2xpbmljYWwgJiBUcmFuc2xhdGlvbmFsIFNjaWVuY2UgSW5zdGl0dXRlIChDVFNJKSIsInN5bWJvbCI6IkNETC5VQ1NGQ1RTSSIsInllYXIiOjIwMTIsImNvbnRhY3RFbWFpbCI6ImV6aWRAdWNvcC5lZHUiLCJhbHRlcm5hdGVOYW1lIjpudWxsLCJkZXNjcmlwdGlvbiI6bnVsbCwibGFuZ3VhZ2UiOm51bGwsImNsaWVudFR5cGUiOiJyZXBvc2l0b3J5IiwiZG9tYWlucyI6IioiLCJyZTNkYXRhIjpudWxsLCJvcGVuZG9hciI6bnVsbCwiaXNzbiI6bnVsbCwidXJsIjpudWxsLCJjcmVhdGVkIjoiMjAxMi0wNy0xMFQyMDo1OTo1My4wMDBaIiwidXBkYXRlZCI6IjIwMTgtMDgtMjZUMDE6MzA6MzEuMDAwWiIsImlzQWN0aXZlIjp0cnVlLCJoYXNQYXNzd29yZCI6dHJ1ZX0sInJlbGF0aW9uc2hpcHMiOnsicHJvdmlkZXIiOnsiZGF0YSI6eyJpZCI6ImNkbCIsInR5cGUiOiJwcm92aWRlcnMifX0sInByZWZpeGVzIjp7ImRhdGEiOlt7ImlkIjoiMTAuNzI3MiIsInR5cGUiOiJwcmVmaXhlcyJ9XX19fV19 http_version: null - recorded_at: Sun, 26 Jul 2020 11:59:22 GMT + recorded_at: Mon, 12 Oct 2020 06:05:08 GMT +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/Q6G15XS4 + 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://datashare.ucsf.edu/stash/dataset/doi:10.7272/Q6G15XS4"}}]' + 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: + - Mon, 12 Oct 2020 06:05:09 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/Q6G15XS4"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 06:05:09 GMT +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/Q6G15XS4 + 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://datashare.ucsf.edu/stash/dataset/doi:10.7272/Q6G15XS4"}}]' + 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: + - Mon, 12 Oct 2020 06:05:10 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/Q6G15XS4"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 06:05:10 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 new file mode 100644 index 000000000..a17d2c6ac --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/json/created_the_record.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/9ZWB-RB91 + 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://idea.library.drexel.edu/islandora/object/idea:9531"}}]' + 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: + - Mon, 12 Oct 2020 05:51:24 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/9ZWB-RB91"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:51:24 GMT +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/9ZWB-RB91 + 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://idea.library.drexel.edu/islandora/object/idea:9531"}}]' + 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: + - Mon, 12 Oct 2020 05:51:24 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + 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_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 new file mode 100644 index 000000000..57dee62e7 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page/creates_a_doi.yml @@ -0,0 +1,69 @@ +--- +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: + - Mon, 12 Oct 2020 05:51:50 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: Mon, 12 Oct 2020 05:51:50 GMT +- 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: + - Mon, 12 Oct 2020 05:51:50 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: Mon, 12 Oct 2020 05:51:50 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 new file mode 100644 index 000000000..26e3a5606 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/landing_page_schema-org-id_array/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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: + - Mon, 12 Oct 2020 05:51:42 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: Mon, 12 Oct 2020 05:51:42 GMT +- 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: + - Mon, 12 Oct 2020 05:51:42 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: Mon, 12 Oct 2020 05:51:42 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 new file mode 100644 index 000000000..d56056e05 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/mds_doi/add_metadata.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:51 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: Mon, 12 Oct 2020 05:51:51 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:52 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: Mon, 12 Oct 2020 05:51:52 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 new file mode 100644 index 000000000..23631ca89 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/schema_org/updates_the_record.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/8NA3-9S47 + 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://ors.datacite.org/doi:/10.14454/8na3-9s47"}}]' + 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: + - Mon, 12 Oct 2020 05:51: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/8NA3-9S47"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:51:44 GMT +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/8NA3-9S47 + 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://ors.datacite.org/doi:/10.14454/8na3-9s47"}}]' + 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: + - Mon, 12 Oct 2020 05:51: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/8NA3-9S47"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:51:44 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 new file mode 100644 index 000000000..6c3c03ccf --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/update_individual_attribute/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:31 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: Mon, 12 Oct 2020 05:51:31 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:31 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: Mon, 12 Oct 2020 05:51:31 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 new file mode 100644 index 000000000..e03a08b8b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_creators_change/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:23 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: Mon, 12 Oct 2020 05:51:23 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:23 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: Mon, 12 Oct 2020 05:51:23 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 new file mode 100644 index 000000000..98cf87ddf --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:21 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: Mon, 12 Oct 2020 05:51:21 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:22 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: Mon, 12 Oct 2020 05:51:22 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 new file mode 100644 index 000000000..3e0715705 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_random_doi/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/003R-J076 + 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"}}]' + 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: + - Mon, 12 Oct 2020 06:34:21 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/003R-J076"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 06:34:21 GMT +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/003R-J076 + 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"}}]' + 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: + - Mon, 12 Oct 2020 06:34:21 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + 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_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 new file mode 100644 index 000000000..aba34dbfe --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_attributes/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:10 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: Mon, 12 Oct 2020 05:51:10 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:11 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: Mon, 12 Oct 2020 05:51:11 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 new file mode 100644 index 000000000..3434f012e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_optional_properties/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:03 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: Mon, 12 Oct 2020 05:51:03 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:03 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: Mon, 12 Oct 2020 05:51:03 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 new file mode 100644 index 000000000..a225569bf --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_is_valid_with_recommended_properties/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:47 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: Mon, 12 Oct 2020 05:51:47 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:47 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: Mon, 12 Oct 2020 05:51:47 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 new file mode 100644 index 000000000..8a81b216b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_3/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:14 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: Mon, 12 Oct 2020 05:51:14 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:15 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: Mon, 12 Oct 2020 05:51:15 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 new file mode 100644 index 000000000..0c1c20449 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_0/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:08 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: Mon, 12 Oct 2020 05:51:08 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:08 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: Mon, 12 Oct 2020 05:51:08 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 new file mode 100644 index 000000000..291af5a76 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_request_uses_schema_4_2/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51: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/10703"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:51:45 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51: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/10703"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 05:51:45 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 new file mode 100644 index 000000000..5fb13e66b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_title_changes/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:20 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: Mon, 12 Oct 2020 05:51:20 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:20 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: Mon, 12 Oct 2020 05:51:20 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 new file mode 100644 index 000000000..29c5549d9 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_blank/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:29 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: Mon, 12 Oct 2020 05:51:29 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:30 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: Mon, 12 Oct 2020 05:51:30 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 new file mode 100644 index 000000000..b0f23d5af --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_titles_changes_to_nil/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:09 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: Mon, 12 Oct 2020 05:51:09 GMT +- 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":"http://www.bl.uk/pdf/patspec.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: + - Mon, 12 Oct 2020 05:51:09 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: Mon, 12 Oct 2020 05:51:09 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 new file mode 100644 index 000000000..72c4097b8 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/POST_/dois/when_the_url_changes_ftp_url/creates_a_Doi.yml @@ -0,0 +1,69 @@ +--- +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":"ftp://ftp.library.noaa.gov/noaa_documents.lib/NOS/NGS/TM_NOS_NGS/TM_NOS_NGS_72.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: + - Mon, 12 Oct 2020 05:51:46 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: Mon, 12 Oct 2020 05:51:46 GMT +- 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":"ftp://ftp.library.noaa.gov/noaa_documents.lib/NOS/NGS/TM_NOS_NGS/TM_NOS_NGS_72.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: + - Mon, 12 Oct 2020 05:51:46 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: Mon, 12 Oct 2020 05:51:46 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/DataciteDoisController/downloads/has_downloads_meta.yml b/spec/fixtures/vcr_cassettes/DataciteDoisController/downloads/has_downloads_meta.yml deleted file mode 100644 index 61e755128..000000000 --- a/spec/fixtures/vcr_cassettes/DataciteDoisController/downloads/has_downloads_meta.yml +++ /dev/null @@ -1,51 +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: - - Mon, 28 Sep 2020 10:11:53 GMT - Content-Type: - - application/json;charset=UTF-8 - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d58afafd88534ac7ebc3f22717efd88aa1601287913; expires=Wed, 28-Oct-20 - 10:11:53 GMT; path=/; domain=.doi.org; HttpOnly; SameSite=Lax; Secure - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - 0575cb979600001f154824e200000001 - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload - Server: - - cloudflare - Cf-Ray: - - 5d9caed288151f15-FRA - body: - encoding: ASCII-8BIT - string: |- - [ - { - "DOI": "10.14454", - "RA": "DataCite" - } - ] - http_version: null - recorded_at: Mon, 28 Sep 2020 10:11:53 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 new file mode 100644 index 000000000..13f6fdf6d --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/publish/updates_the_record.yml @@ -0,0 +1,69 @@ +--- +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://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: + - Mon, 12 Oct 2020 05:54:25 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: Mon, 12 Oct 2020 05:54:25 GMT +- 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://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: + - Mon, 12 Oct 2020 05:54:26 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: Mon, 12 Oct 2020 05:54:26 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 new file mode 100644 index 000000000..3e9ddff3f --- /dev/null +++ b/spec/fixtures/vcr_cassettes/DataciteDoisController/state/register/creates_the_record.yml @@ -0,0 +1,69 @@ +--- +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://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: + - Mon, 12 Oct 2020 05:54:22 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: Mon, 12 Oct 2020 05:54:22 GMT +- 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://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: + - Mon, 12 Oct 2020 05:54:22 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: Mon, 12 Oct 2020 05:54:22 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_state_change.yml b/spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_state_change.yml new file mode 100644 index 000000000..e09c9e2bb --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_state_change.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/Y2Y594JO2QUEQD4 + 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://schinnerward.com/lauryn"}}]' + 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: + - Mon, 12 Oct 2020 07:05: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/Y2Y594JO2QUEQD4"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 07:05:35 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_url_change.yml b/spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_url_change.yml new file mode 100644 index 000000000..9af4add19 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Doi/update_url/findable_doi/update_url_change.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/WUHSZXDWRZCTM + 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://www.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: 201 + message: Created + headers: + Date: + - Mon, 12 Oct 2020 07:05: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/WUHSZXDWRZCTM"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 07:05:35 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_state_change.yml b/spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_state_change.yml new file mode 100644 index 000000000..cec6f4fac --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_state_change.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/KS82GIPV9HGHL + 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://dubuque.com/abraham"}}]' + 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: + - Mon, 12 Oct 2020 07:05:34 GMT + Content-Type: + - application/json;charset=UTF-8 + Connection: + - keep-alive + Vary: + - Accept-Encoding + body: + encoding: ASCII-8BIT + string: '{"responseCode":1,"handle":"10.14454/KS82GIPV9HGHL"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 07:05:34 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_url_change.yml b/spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_url_change.yml new file mode 100644 index 000000000..c703f4e7b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Doi/update_url/registered_doi/update_url_change.yml @@ -0,0 +1,36 @@ +--- +http_interactions: +- request: + method: put + uri: https://handle.test.datacite.org/api/handles/10.14454/RJWWB5QTT57ZRFEP + 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://www.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: 201 + message: Created + headers: + Date: + - Mon, 12 Oct 2020 07:05: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/RJWWB5QTT57ZRFEP"}' + http_version: null + recorded_at: Mon, 12 Oct 2020 07:05:33 GMT +recorded_with: VCR 5.1.0 diff --git a/spec/models/doi_spec.rb b/spec/models/doi_spec.rb index 005a2428d..5977ca954 100644 --- a/spec/models/doi_spec.rb +++ b/spec/models/doi_spec.rb @@ -184,14 +184,8 @@ subject { build(:doi, client: client, current_user: current_user) } it "don't update state change" do - expect { subject.save }.not_to have_enqueued_job(HandleJob) expect(subject).to have_state(:draft) end - - it "don't update url change" do - subject.url = url - expect { subject.save }.not_to have_enqueued_job(HandleJob) - end end context "registered doi" do @@ -202,19 +196,8 @@ it "update state change" do subject.register - expect { subject.save }.to have_enqueued_job(HandleJob).on_queue("test_lupo").with { |doi_id| - expect(doi_id).to eq(subject.doi) - } expect(subject).to have_state(:registered) end - - it "update url change" do - subject.register - subject.url = url - expect { subject.save }.to have_enqueued_job(HandleJob).on_queue("test_lupo").with { |doi_id| - expect(doi_id).to eq(subject.doi) - } - end end context "findable doi" do @@ -225,19 +208,8 @@ it "update state change" do subject.publish - expect { subject.save }.to have_enqueued_job(HandleJob).on_queue("test_lupo").with { |doi_id| - expect(doi_id).to eq(subject.doi) - } expect(subject).to have_state(:findable) end - - it "update url change" do - subject.publish - subject.url = url - expect { subject.save }.to have_enqueued_job(HandleJob).on_queue("test_lupo").with { |doi_id| - expect(doi_id).to eq(subject.doi) - } - end end context "provider europ" do @@ -248,15 +220,8 @@ it "don't update state change" do subject.publish - expect { subject.save }.not_to have_enqueued_job(HandleJob) expect(subject).to have_state(:findable) end - - it "don't update url change" do - subject.publish - subject.url = url - expect { subject.save }.not_to have_enqueued_job(HandleJob) - end end context "no current_user" do @@ -267,15 +232,8 @@ it "don't update state change" do subject.publish - expect { subject.save }.not_to have_enqueued_job(HandleJob) expect(subject).to have_state(:findable) end - - it "don't update url change" do - subject.publish - subject.url = url - expect { subject.save }.not_to have_enqueued_job(HandleJob) - end end # context "no url" do diff --git a/spec/requests/datacite_dois_spec.rb b/spec/requests/datacite_dois_spec.rb index 1e07e177a..c3741b74d 100644 --- a/spec/requests/datacite_dois_spec.rb +++ b/spec/requests/datacite_dois_spec.rb @@ -1,6 +1,6 @@ require "rails_helper" -describe DataciteDoisController, type: :request do +describe DataciteDoisController, type: :request, vcr: true do let(:admin) { create(:provider, symbol: "ADMIN") } let(:admin_bearer) { Client.generate_token(role_id: "staff_admin", uid: admin.symbol, password: admin.password) } let(:admin_headers) { { "HTTP_ACCEPT" => "application/vnd.api+json", "HTTP_AUTHORIZATION" => "Bearer " + admin_bearer} } @@ -10,7 +10,7 @@ let!(:prefix) { create(:prefix, uid: "10.14454") } let!(:client_prefix) { create(:client_prefix, client: client, prefix: prefix) } - let(:doi) { create(:doi, client: client) } + let(:doi) { create(:doi, client: client, doi: "10.14454/4K3M-NYVG") } let(:bearer) { Client.generate_token(role_id: "client_admin", uid: client.symbol, provider_id: provider.symbol.downcase, client_id: client.symbol.downcase, password: client.password) } let(:headers) { { "HTTP_ACCEPT" => "application/vnd.api+json", "HTTP_AUTHORIZATION" => "Bearer " + bearer }} @@ -972,7 +972,7 @@ end context 'NoMethodError https://github.com/datacite/lupo/issues/84' do - let(:doi) { create(:doi, client: client) } + let(:doi) { create(:doi, doi: "10.14454/4K3M-NYVG", client: client) } let(:url) { "https://figshare.com/articles/Additional_file_1_of_Contemporary_ancestor_Adaptive_divergence_from_standing_genetic_variation_in_Pacific_marine_threespine_stickleback/6839054/1" } let(:valid_attributes) do { @@ -1019,11 +1019,6 @@ expect(json.dig('data', 'attributes', 'url')).to eq("http://www.bl.uk/pdf/pat.pdf") expect(json.dig('data', 'attributes', 'doi')).to eq(doi_id.downcase) expect(json.dig('data', 'attributes', 'titles')).to eq([{"title"=>"Eating your own Dog Food"}]) - end - - it 'sets state to findable' do - put "/dois/#{doi_id}", valid_attributes, headers - expect(json.dig('data', 'attributes', 'state')).to eq("findable") end end @@ -1134,11 +1129,6 @@ expect(json.dig('data', 'attributes', 'url')).to eq("http://www.bl.uk/pdf/pat.pdf") expect(json.dig('data', 'attributes', 'doi')).to eq(doi.doi.downcase) expect(json.dig('data', 'attributes', 'dates')).to eq([{"date"=>":tba", "dateType"=>"Issued"}]) - end - - it 'sets state to findable' do - patch "/dois/#{doi.doi}", valid_attributes, headers - expect(json.dig('data', 'attributes', 'state')).to eq("findable") end end @@ -1167,11 +1157,6 @@ expect(json.dig('data', 'attributes', 'url')).to eq("http://www.bl.uk/pdf/pat.pdf") expect(json.dig('data', 'attributes', 'doi')).to eq(doi.doi.downcase) expect(json.dig('data', 'attributes', 'titles')).to eq(titles) - end - - it 'sets state to findable' do - patch "/dois/#{doi.doi}", valid_attributes, headers - expect(json.dig('data', 'attributes', 'state')).to eq("findable") end end @@ -1225,11 +1210,6 @@ expect(json.dig('data', 'attributes', 'url')).to eq("http://www.bl.uk/pdf/pat.pdf") expect(json.dig('data', 'attributes', 'doi')).to eq(doi.doi.downcase) expect(json.dig('data', 'attributes', 'descriptions')).to eq([]) - end - - it 'sets state to findable' do - patch "/dois/#{doi.doi}", valid_attributes, headers - expect(json.dig('data', 'attributes', 'state')).to eq("findable") end end @@ -1374,11 +1354,6 @@ expect(json.dig('data', 'attributes', 'url')).to eq("http://www.bl.uk/pdf/pat.pdf") expect(json.dig('data', 'attributes', 'doi')).to eq(doi.doi.downcase) expect(json.dig('data', 'attributes', 'creators')).to eq(creators) - end - - it 'sets state to findable' do - patch "/dois/#{doi.doi}", valid_attributes, headers - expect(json.dig('data', 'attributes', 'state')).to eq("findable") end end @@ -1493,11 +1468,6 @@ expect(json.dig('data', 'attributes', 'url')).to eq("http://www.bl.uk/pdf/pat.pdf") expect(json.dig('data', 'attributes', 'doi')).to eq(doi.doi.downcase) expect(json.dig('data', 'attributes', 'types')).to eq("bibtex"=>"misc", "citeproc"=>"article", "resourceType"=>"BlogPosting", "resourceTypeGeneral"=>"DataPaper", "ris"=>"GEN", "schemaOrg"=>"CreativeWork") - end - - it 'sets state to findable' do - patch "/dois/#{doi.doi}", valid_attributes, headers - expect(json.dig('data', 'attributes', 'state')).to eq("findable") end end @@ -1569,6 +1539,32 @@ end end + context 'when the request has invalid client domains' do + let(:client) { create(:client, provider: provider, symbol: ENV['MDS_USERNAME'], password: ENV['MDS_PASSWORD'], re3data_id: "10.17616/r3xs37", domains: "example.org") } + let(:bearer) { Client.generate_token(role_id: "client_admin", uid: client.symbol, provider_id: provider.symbol.downcase, client_id: client.symbol.downcase, password: client.password) } + let(:headers) { { "HTTP_ACCEPT" => "application/vnd.api+json", "HTTP_AUTHORIZATION" => "Bearer " + bearer }} + let(:xml) { Base64.strict_encode64(file_fixture('datacite.xml').read) } + let(:valid_attributes) do + { + "data" => { + "type" => "dois", + "attributes" => { + "doi" => "10.14454/10703", + "url" => "http://www.bl.uk/pdf/patspec.pdf", + "xml" => xml, + "source" => "test", + "event" => "publish" + } + } + } + end + + it 'fails to create a Doi' do + post '/dois', valid_attributes, headers + expect(last_response.status).to eq(400) + end + end + context 'when providing version' do let(:valid_attributes) do { @@ -2076,7 +2072,7 @@ expect(json.dig('data', 'attributes', 'url')).to eq("https://idea.library.drexel.edu/islandora/object/idea:9531") expect(json.dig('data', 'attributes', 'doi')).to eq("10.14454/9zwb-rb91") expect(json.dig('data', 'attributes', 'types')).to eq("bibtex"=>"phdthesis", "citeproc"=>"thesis", "resourceType"=>"Dissertation", "resourceTypeGeneral"=>"Text", "ris"=>"THES", "schemaOrg"=>"Thesis") - expect(json.dig('data', 'attributes', 'descriptions', 0, 'description')).to start_with("Diet and physical activity") + expect(json.dig('data', 'attributes', 'descriptions', 0, 'description')).to start_with("Diet and physical activity") expect(json.dig('data', 'attributes', 'titles')).to eq([{"lang"=>"en", "title"=>"The Relationship Among Sport Type, Micronutrient Intake and Bone Mineral Density in an Athlete Population","titleType"=>nil},{"lang"=>"en", "title"=>"Subtitle", "titleType"=>"Subtitle"}]) expect(json.dig('data', 'attributes', 'state')).to eq("findable") @@ -3041,7 +3037,7 @@ it 'updates the Doi' do patch "/dois/#{doi.doi}", update_attributes, headers - puts last_response.body + expect(last_response.status).to eq(422) expect(json["errors"]).to eq([{"source"=>"contributors", "title"=>"Contributor type Funder is not supported in schema 4."}]) end @@ -3641,7 +3637,7 @@ it 'returns url' do get "/dois/#{doi.doi}/get-url", nil, headers - expect(json["url"]).to eq("https://www.datacite.org/roadmap.html") + expect(json["url"]).to eq("http://stokes.info/erin") expect(last_response.status).to eq(200) end end @@ -3698,7 +3694,7 @@ get "/dois/get-dois", nil, headers expect(last_response.status).to eq(200) - expect(json["dois"].length).to eq(446) + expect(json["dois"].length).to eq(449) expect(json["dois"].first).to eq("10.5438/0000-00SS") end end