Sha256: 42714064d74611689829863d87cb3cc89091ccb32c7450f9f897324535772959

Contents?: true

Size: 1.13 KB

Versions: 25

Compression:

Stored size: 1.13 KB

Contents

module WebService
  module Response
    require 'test_helper'
    class ErrorTest < Test::Unit::TestCase
      def setup
        @base_url = "http://bobcatdev.library.nyu.edu"
        @isbn = "0143039008"
        @user_id = "N12162279"
        @institution = "NYU"
        @doc_id = "nyu_aleph000062856"
        @dedupmgr_id = "dedupmrg17343091"
        @basket_id ="210075761"
        @new_folder_name = "new folder"
      end

      def test_get_tags
        VCR.use_cassette('response add tag') {
          soap_action = :add_tag
          request = Exlibris::Primo::WebService::Request::AddTag.new(:user_id => @user_id, 
            :institution => @institution, :doc_id => @doc_id, :value => "test tag")
          client = Exlibris::Primo::WebService::Client::Tags.new(:base_url => @base_url)
          response =Exlibris::Primo::WebService::Response::AddTag.new(
            client.send(soap_action, request.to_xml), soap_action)
            assert((not response.error?))
            assert_equal("0", response.error_code)
            assert_equal("Add tag action completed successfully", response.error_message)
        }
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 test/web_service/response/error_test.rb
exlibris-primo-2.1.0 test/web_service/response/error_test.rb
exlibris-primo-2.0.0 test/web_service/response/error_test.rb
exlibris-primo-1.1.9 test/web_service/response/error_test.rb
exlibris-primo-1.1.8 test/web_service/response/error_test.rb
exlibris-primo-1.1.7 test/web_service/response/error_test.rb
exlibris-primo-1.1.6 test/web_service/response/error_test.rb
exlibris-primo-1.1.5 test/web_service/response/error_test.rb
exlibris-primo-1.1.4 test/web_service/response/error_test.rb
exlibris-primo-1.1.3 test/web_service/response/error_test.rb
exlibris-primo-1.1.2 test/web_service/response/error_test.rb
exlibris-primo-1.1.1 test/web_service/response/error_test.rb
exlibris-primo-1.1.0 test/web_service/response/error_test.rb
exlibris-primo-1.0.11 test/web_service/response/error_test.rb
exlibris-primo-1.0.10 test/web_service/response/error_test.rb
exlibris-primo-1.0.9 test/web_service/response/error_test.rb
exlibris-primo-1.0.8 test/web_service/response/error_test.rb
exlibris-primo-1.0.7 test/web_service/response/error_test.rb
exlibris-primo-1.0.6 test/web_service/response/error_test.rb
exlibris-primo-1.0.5 test/web_service/response/error_test.rb